Update ESLint config and package.json with latest settings
This commit is contained in:
parent
3edca952cb
commit
3920ca97cc
2 changed files with 10 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import { globalIgnores } from 'eslint/config';
|
import { globalIgnores } from 'eslint/config';
|
||||||
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript';
|
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript';
|
||||||
import pluginVue from 'eslint-plugin-vue';
|
import pluginVue from 'eslint-plugin-vue';
|
||||||
//import pluginVitest from '@vitest/eslint-plugin';
|
// import pluginVitest from '@vitest/eslint-plugin';
|
||||||
import js from '@eslint/js';
|
import js from '@eslint/js';
|
||||||
import globals from 'globals';
|
import globals from 'globals';
|
||||||
import stylistic from '@stylistic/eslint-plugin';
|
import stylistic from '@stylistic/eslint-plugin';
|
||||||
|
|
@ -80,7 +80,8 @@ export default defineConfigWithVueTs(
|
||||||
...globals.browser,
|
...globals.browser,
|
||||||
...globals.node,
|
...globals.node,
|
||||||
...globals.vitest,
|
...globals.vitest,
|
||||||
...globals.vue
|
...globals.vue,
|
||||||
|
...globals.jest
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -113,8 +114,12 @@ export default defineConfigWithVueTs(
|
||||||
'@typescript-eslint/no-unused-vars': 'off',
|
'@typescript-eslint/no-unused-vars': 'off',
|
||||||
'jsdoc/reject-any-type': 'off',
|
'jsdoc/reject-any-type': 'off',
|
||||||
'jsdoc/require-param-description': 'off',
|
'jsdoc/require-param-description': 'off',
|
||||||
|
'jsdoc/require-param-type': 'off',
|
||||||
|
'jsdoc/require-returns-description': 'off',
|
||||||
|
'jsdoc/require-returns': 'off',
|
||||||
'jsdoc/require-returns-type': 'off',
|
'jsdoc/require-returns-type': 'off',
|
||||||
'jsdoc/ts-no-empty-object-type': 'off',
|
'jsdoc/ts-no-empty-object-type': 'off',
|
||||||
|
'no-case-declarations': 'off',
|
||||||
'no-constant-binary-expression': 'off',
|
'no-constant-binary-expression': 'off',
|
||||||
'no-dupe-keys': 'off',
|
'no-dupe-keys': 'off',
|
||||||
'no-import-assign': 'off',
|
'no-import-assign': 'off',
|
||||||
|
|
@ -126,6 +131,7 @@ export default defineConfigWithVueTs(
|
||||||
'vitest/valid-title': 'off',
|
'vitest/valid-title': 'off',
|
||||||
'vue/max-len': 'off',
|
'vue/max-len': 'off',
|
||||||
'vue/multi-word-component-names': 'off',
|
'vue/multi-word-component-names': 'off',
|
||||||
|
'vue/no-reserved-component-names': 'off',
|
||||||
'vue/no-side-effects-in-computed-properties': 'off',
|
'vue/no-side-effects-in-computed-properties': 'off',
|
||||||
'@typescript-eslint/no-require-imports': 'off',
|
'@typescript-eslint/no-require-imports': 'off',
|
||||||
'vitest/no-commented-out-tests': 'off',
|
'vitest/no-commented-out-tests': 'off',
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,8 @@
|
||||||
"test:unit:coverage": "vue-cli-service test:unit --coverage --ci --colors",
|
"test:unit:coverage": "vue-cli-service test:unit --coverage --ci --colors",
|
||||||
"test:unit:lite": "vue-cli-service test:unit --ci",
|
"test:unit:lite": "vue-cli-service test:unit --ci",
|
||||||
"test:playwright": "playwright test --config=playwright-tests/playwright.config.ts",
|
"test:playwright": "playwright test --config=playwright-tests/playwright.config.ts",
|
||||||
"lint": "eslint --quiet .",
|
"lint": "eslint .",
|
||||||
|
"lint:fix": "eslint --fix .",
|
||||||
"lint:inspect": "eslint --inspect-config"
|
"lint:inspect": "eslint --inspect-config"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue