X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.js;h=d7004cc55ff8460161f54f766086dd78d7612eb8;hb=31ce819c252a2aa74171548f48b0bd38e546c8f7;hp=71acb042b00fe1eb99c786440fff67a10ebce48f;hpb=3fafb1b2f068533b39818d66b5b0b9972f76f577;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index 71acb042..d7004cc5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,4 +1,3 @@ -// @ts-check const { defineConfig } = require('eslint-define-config') module.exports = defineConfig({ @@ -18,19 +17,27 @@ module.exports = defineConfig({ 'plugin:import/recommended', 'plugin:promise/recommended' ], + settings: { + 'import/resolver': { + typescript: { + project: './tsconfig.eslint.json' + } + } + }, rules: { 'sort-imports': [ - 'warn', + 'error', { - ignoreMemberSort: true, ignoreDeclarationSort: true } ], + 'import/order': 'error', 'spellcheck/spell-checker': [ 'warn', { skipWords: [ + 'Benoit', 'benny', 'browserslist', 'builtins', @@ -41,12 +48,15 @@ module.exports = defineConfig({ 'cpus', 'ctx', 'deprecations', + 'dequeue', + 'dequeued', 'ecma', + 'enqueue', 'enum', + 'errored', 'esm', 'fibonacci', 'fs', - 'hrtime', 'inheritDoc', 'jsdoc', 'microjob', @@ -58,6 +68,7 @@ module.exports = defineConfig({ 'poolifier', 'poolify', 'readonly', + 'resize', 'serializable', 'sinon', 'threadjs', @@ -68,7 +79,8 @@ module.exports = defineConfig({ 'unlink', 'unregister', 'utf8', - 'workerpool' + 'workerpool', + 'wwr' ], skipIfMatch: ['^@.*', '^plugin:.*'] } @@ -80,7 +92,7 @@ module.exports = defineConfig({ plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'], parser: '@typescript-eslint/parser', parserOptions: { - project: './tsconfig.json' + project: './tsconfig.eslint.json' }, extends: [ 'plugin:@typescript-eslint/eslint-recommended', @@ -100,7 +112,6 @@ module.exports = defineConfig({ { files: ['examples/typescript/**/*.ts'], rules: { - 'import/no-unresolved': 'off', '@typescript-eslint/no-unsafe-argument': 'off', '@typescript-eslint/no-unsafe-call': 'off', '@typescript-eslint/no-unsafe-assignment': 'off'