From: Jérôme Benoit Date: Fri, 2 Aug 2024 00:13:35 +0000 (+0200) Subject: chore: cleanup eslint configuration X-Git-Tag: ocpp-server@v1.5.2~142 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2af223ef1fd1fc41ebed66c6128a4aa5e56ede90;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 e88d3d91..76e43e88 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -35,23 +35,25 @@ export default defineFlatConfig([ }, }, }, - ...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, + ...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, - }, + { + files: ['**/*.js', '**/*.mjs', '**/*.cjs'], + ...plugins['typescript-eslint'].configs.disableTypeChecked, + } + ), { plugins: { 'simple-import-sort': simpleImportSort,