mirror of
https://github.com/mathuo/dockview
synced 2025-10-19 06:18:00 +00:00
chore: fix linting
This commit is contained in:
parent
2c8547d942
commit
e34d7caed1
24
.eslintrc.js
24
.eslintrc.js
@ -2,18 +2,34 @@ module.exports = {
|
|||||||
root: true,
|
root: true,
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
project: ['./tsconfig.eslint.json', './packages/*/tsconfig.json'],
|
project: [
|
||||||
|
'./tsconfig.eslint.json',
|
||||||
|
'./packages/*/tsconfig.json',
|
||||||
|
'./packages/dockview-vue/tsconfig.app.json'
|
||||||
|
],
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
},
|
},
|
||||||
plugins: ['@typescript-eslint'],
|
plugins: ['@typescript-eslint'],
|
||||||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
||||||
|
ignorePatterns: [
|
||||||
|
'packages/docs/**',
|
||||||
|
'**/__tests__/**',
|
||||||
|
'**/__mocks__/**',
|
||||||
|
'**/*.spec.*',
|
||||||
|
'**/*.test.*',
|
||||||
|
'dist/',
|
||||||
|
'node_modules/',
|
||||||
|
'*.scss'
|
||||||
|
],
|
||||||
rules: {
|
rules: {
|
||||||
'no-case-declarations': 'off',
|
'no-case-declarations': 'off',
|
||||||
'@typescript-eslint/no-namespace': 'off',
|
'@typescript-eslint/no-namespace': 'off',
|
||||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||||
'@typescript-eslint/no-explicit-any': 'off',
|
'@typescript-eslint/no-explicit-any': 'warn',
|
||||||
'@typescript-eslint/no-unused-vars': 'off',
|
'@typescript-eslint/no-unused-vars': 'warn',
|
||||||
'@typescript-eslint/ban-types': 'off',
|
'@typescript-eslint/ban-types': 'off',
|
||||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
'@typescript-eslint/no-non-null-assertion': 'warn',
|
||||||
|
'prefer-const': 'warn',
|
||||||
|
'@typescript-eslint/no-var-requires': 'error',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,8 @@
|
|||||||
"clean": "lerna run clean",
|
"clean": "lerna run clean",
|
||||||
"docs": "typedoc",
|
"docs": "typedoc",
|
||||||
"generate-docs": "node scripts/docs.mjs",
|
"generate-docs": "node scripts/docs.mjs",
|
||||||
"lint": "eslint packages/**/src/** --ext .ts,.tsx,.js,.jsx",
|
"lint": "eslint 'packages/*/src/**/*.{ts,tsx,js,jsx}'",
|
||||||
|
"lint:fix": "eslint 'packages/*/src/**/*.{ts,tsx,js,jsx}' --fix",
|
||||||
"package": "node scripts/package.js",
|
"package": "node scripts/package.js",
|
||||||
"package-docs": "node scripts/package-docs.js",
|
"package-docs": "node scripts/package-docs.js",
|
||||||
"set-experimental-versions": "node scripts/set-experimental-versions",
|
"set-experimental-versions": "node scripts/set-experimental-versions",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user