X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.cjs;h=80b400b6572173a3817bd88651cd85b5b9369e62;hb=4d7de618c50cbbe66e8bcaf7fb2fd13c6e01a561;hp=f8251b907d55a33c123a00329d307dde0f1204cd;hpb=799c9e089724b6402ae72e0a60719017055a6669;p=poolifier.git diff --git a/.eslintrc.cjs b/.eslintrc.cjs index f8251b90..80b400b6 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,20 +25,17 @@ 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', + 'bmf', 'browserslist', 'builtins', 'christopher', @@ -49,6 +46,7 @@ module.exports = defineConfig({ 'cpus', 'cryptographically', 'ctx', + 'decrement', 'deprecations', 'deque', 'dequeue', @@ -83,6 +81,7 @@ module.exports = defineConfig({ 'poolifier', 'prepend', 'prepends', + 'positionals', 'readdir', 'readonly', 'req', @@ -92,6 +91,8 @@ module.exports = defineConfig({ 'threadjs', 'threadwork', 'tinypool', + 'tld', + 'tos', 'tsconfig', 'tsdoc', 'typedoc', @@ -119,7 +120,7 @@ module.exports = defineConfig({ 'plugin:@typescript-eslint/strict-type-checked', 'plugin:@typescript-eslint/stylistic-type-checked', 'plugin:import/typescript', - 'standard-with-typescript' + 'love' ], rules: { 'operator-linebreak': 'off',