From: Jérôme Benoit Date: Fri, 2 Aug 2024 00:08:36 +0000 (+0200) Subject: chore: cleanup eslint configuration X-Git-Tag: v4.2.0~23 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=495c645139b87e12433d2d19a8cb9a9606bd8142;p=poolifier.git chore: cleanup eslint configuration Signed-off-by: Jérôme Benoit --- diff --git a/eslint.config.js b/eslint.config.js index 7711b2b5..517ded5d 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -27,21 +27,23 @@ export default defineFlatConfig([ }, }, ...plugins['typescript-eslint'].config( - ...plugins['typescript-eslint'].configs.strictTypeChecked, - ...plugins['typescript-eslint'].configs.stylisticTypeChecked, { + 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,