From: Jérôme Benoit Date: Thu, 1 Aug 2024 22:41:26 +0000 (+0200) Subject: chore: cleanup eslint configuration X-Git-Tag: v4.2.0~25 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2d5b125725f640172965b002257028a5fdea5d9b;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 19fb0137..4d9a1111 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -26,12 +26,6 @@ export default defineFlatConfig([ ], }, }, - ...neostandard({ - ts: true, - globals: { - ...globals.mocha, - }, - }), ...plugins['typescript-eslint'].config( ...plugins['typescript-eslint'].configs.strictTypeChecked, ...plugins['typescript-eslint'].configs.stylisticTypeChecked @@ -44,6 +38,10 @@ export default defineFlatConfig([ }, }, }, + { + files: ['**/*.js', '**/*.mjs', '**/*.cjs'], + ...plugins['typescript-eslint'].configs.disableTypeChecked, + }, { plugins: { 'simple-import-sort': simpleImportSort, @@ -70,6 +68,12 @@ export default defineFlatConfig([ 'simple-import-sort/exports': 'error', }, }, + ...neostandard({ + ts: true, + globals: { + ...globals.mocha, + }, + }), { files: [ 'src/pools/selection-strategies/fair-share-worker-choice-strategy.ts', @@ -78,10 +82,6 @@ export default defineFlatConfig([ '@stylistic/operator-linebreak': 'off', }, }, - { - files: ['**/*.js', '**/*.mjs', '**/*.cjs'], - ...plugins['typescript-eslint'].configs.disableTypeChecked, - }, // examples specific configuration { files: ['examples/**/*.ts'],