From: Jérôme Benoit Date: Thu, 1 Aug 2024 23:58:07 +0000 (+0200) Subject: chore: cleanup eslint configuration X-Git-Tag: ocpp-server@v1.5.2~144 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=be4215a4ac4420a158ef51ad9c577ce326ee6874;p=e-mobility-charging-stations-simulator.git chore: cleanup eslint configuration Signed-off-by: Jérôme Benoit --- diff --git a/eslint.config.js b/eslint.config.js index c675dd5a..33afb9c9 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -7,6 +7,24 @@ import simpleImportSort from 'eslint-plugin-simple-import-sort' import pluginVue from 'eslint-plugin-vue' import neostandard, { plugins } from 'neostandard' +// export default plugins['typescript-eslint'].config({ +// files: ['** /*.ts'], +// extends: [ +// eslint.configs.recommended, +// ...plugins['typescript-eslint'].configs.recommended, +// ], +// rules: { +// '@typescript-eslint/array-type': 'error', +// '@typescript-eslint/consistent-type-imports': 'error', +// }, +// languageOptions: { +// parserOptions: { +// projectService: true, +// tsconfigRootDir: import.meta.dirname, +// }, +// }, +// }) + export default defineFlatConfig([ { ignores: ['**/dist/**'], @@ -35,24 +53,19 @@ export default defineFlatConfig([ }, }, }, - ...plugins['typescript-eslint'].config( - { - files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts', '*/**.vue'], - extends: [ - ...plugins['typescript-eslint'].configs.strictTypeChecked, - ...plugins['typescript-eslint'].configs.stylisticTypeChecked, - ], - }, - { - files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'], - languageOptions: { - parserOptions: { - projectService: true, - tsconfigRootDir: import.meta.dirname, - }, + ...plugins['typescript-eslint'].config({ + files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts', '*/**.vue'], + extends: [ + ...plugins['typescript-eslint'].configs.strictTypeChecked, + ...plugins['typescript-eslint'].configs.stylisticTypeChecked, + ], + languageOptions: { + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, }, - } - ), + }, + }), { files: ['**/*.js', '**/*.mjs', '**/*.cjs'], ...plugins['typescript-eslint'].configs.disableTypeChecked,