X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.cjs;h=1d432cb725b5cc6529b4446cd2e84f0469a22d0b;hb=68f39a43e05733545555d14942f1f60af6f4be5a;hp=522fdce51d59bac6a4553e40a644a258d3341468;hpb=67f3f2d6cb8f915ec71f81c4533ab80a6c6a6f0f;p=poolifier.git diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 522fdce5..1d432cb7 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,8 +65,10 @@ module.exports = defineConfig({ 'inheritDoc', 'javascript', 'jsdoc', + 'linebreak', 'localhost', 'microjob', + 'mitata', 'mjs', 'nodemailer', 'npx', @@ -82,6 +80,7 @@ module.exports = defineConfig({ 'poolifier', 'prepend', 'prepends', + 'positionals', 'readdir', 'readonly', 'req', @@ -91,6 +90,8 @@ module.exports = defineConfig({ 'threadjs', 'threadwork', 'tinypool', + 'tld', + 'tos', 'tsconfig', 'tsdoc', 'typedoc', @@ -115,10 +116,10 @@ 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: { 'operator-linebreak': 'off', @@ -151,7 +152,7 @@ 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' } },