mirror of
https://github.com/mathuo/dockview
synced 2025-08-16 06:06:03 +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,
|
||||
parserOptions: {
|
||||
sourceType: 'module',
|
||||
project: ['./tsconfig.eslint.json', './packages/*/tsconfig.json'],
|
||||
project: [
|
||||
'./tsconfig.eslint.json',
|
||||
'./packages/*/tsconfig.json',
|
||||
'./packages/dockview-vue/tsconfig.app.json'
|
||||
],
|
||||
tsconfigRootDir: __dirname,
|
||||
},
|
||||
plugins: ['@typescript-eslint'],
|
||||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
||||
ignorePatterns: [
|
||||
'packages/docs/**',
|
||||
'**/__tests__/**',
|
||||
'**/__mocks__/**',
|
||||
'**/*.spec.*',
|
||||
'**/*.test.*',
|
||||
'dist/',
|
||||
'node_modules/',
|
||||
'*.scss'
|
||||
],
|
||||
rules: {
|
||||
'no-case-declarations': 'off',
|
||||
'@typescript-eslint/no-namespace': 'off',
|
||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'@typescript-eslint/no-unused-vars': 'warn',
|
||||
'@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",
|
||||
"docs": "typedoc",
|
||||
"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-docs": "node scripts/package-docs.js",
|
||||
"set-experimental-versions": "node scripts/set-experimental-versions",
|
||||
|
Loading…
x
Reference in New Issue
Block a user