X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.cjs;h=ef9e86c091254a8920eecfbe2706ff2c2d71736a;hb=13621494abf15bb9080ece6cfb368acf89597319;hp=85ae204ae62ae0b6de420a5391614a04e2fe4f35;hpb=d35e571704515a8b729d3455e4784054f07c368f;p=poolifier.git diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 85ae204a..ef9e86c0 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -8,10 +8,10 @@ module.exports = defineConfig({ mocha: true }, parserOptions: { - ecmaVersion: 2022, - sourceType: 'module' + sourceType: 'module', + ecmaVersion: 2022 }, - plugins: ['promise', 'spellcheck'], + plugins: ['simple-import-sort', 'promise', 'spellcheck'], extends: [ 'eslint:recommended', 'plugin:import/recommended', @@ -25,18 +25,14 @@ module.exports = defineConfig({ } }, rules: { - 'sort-imports': [ - 'error', - { - ignoreDeclarationSort: true - } - ], - 'import/order': 'error', + 'simple-import-sort/imports': 'error', + 'simple-import-sort/exports': 'error', 'spellcheck/spell-checker': [ 'warn', { skipWords: [ + 'argv', 'axios', 'benoit', 'browserslist', @@ -69,6 +65,7 @@ module.exports = defineConfig({ 'inheritDoc', 'javascript', 'jsdoc', + 'linebreak', 'localhost', 'microjob', 'mjs', @@ -82,6 +79,7 @@ module.exports = defineConfig({ 'poolifier', 'prepend', 'prepends', + 'positionals', 'readdir', 'readonly', 'req', @@ -91,6 +89,8 @@ module.exports = defineConfig({ 'threadjs', 'threadwork', 'tinypool', + 'tld', + 'tos', 'tsconfig', 'tsdoc', 'typedoc', @@ -115,13 +115,13 @@ module.exports = defineConfig({ project: './tsconfig.json' }, extends: [ - 'plugin:@typescript-eslint/recommended', - 'plugin:@typescript-eslint/recommended-requiring-type-checking', + 'plugin:@typescript-eslint/strict-type-checked', + 'plugin:@typescript-eslint/stylistic-type-checked', 'plugin:import/typescript', - 'standard-with-typescript' + 'love' ], rules: { - '@typescript-eslint/non-nullable-type-assertion-style': 'off', + 'operator-linebreak': 'off', 'tsdoc/syntax': 'warn' } }, @@ -151,28 +151,33 @@ module.exports = defineConfig({ '@typescript-eslint/no-unnecessary-type-assertion': 'off', '@typescript-eslint/no-redundant-type-constituents': 'off', '@typescript-eslint/strict-boolean-expressions': 'off', - '@typescript-eslint/return-await': 'off' + '@typescript-eslint/return-await': 'off', + '@typescript-eslint/no-non-null-assertion': 'off' } }, { - files: ['**/*.cjs', '**/*.mjs'], + files: ['**/*.cjs', '**/*.js', '**/*.mjs'], plugins: ['jsdoc'], extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard'] }, { - files: ['tests/**/*.cjs', 'tests/**/*.mjs'], + files: ['tests/**/*.cjs', 'tests/**/*.js', 'tests/**/*.mjs'], rules: { 'jsdoc/require-jsdoc': 'off' } }, { - files: ['benchmarks/**/*.cjs', 'benchmarks/**/*.mjs'], + files: [ + 'benchmarks/**/*.cjs', + 'benchmarks/**/*.js', + 'benchmarks/**/*.mjs' + ], rules: { 'jsdoc/require-jsdoc': 'off' } }, { - files: ['examples/javascript/**/*.cjs'], + files: ['examples/javascript/**/*.cjs', 'examples/javascript/**/*.js'], rules: { 'jsdoc/require-jsdoc': 'off' }