X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.js;h=d7004cc55ff8460161f54f766086dd78d7612eb8;hb=7258488054d6b806c3e7571c68533c0d64e120d8;hp=4fc348072f5fb5cb316c2130873d0018744baa8f;hpb=afc003b20097712625ffd053e256ef5336e27b6e;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index 4fc34807..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,8 +48,12 @@ module.exports = defineConfig({ 'cpus', 'ctx', 'deprecations', + 'dequeue', + 'dequeued', 'ecma', + 'enqueue', 'enum', + 'errored', 'esm', 'fibonacci', 'fs', @@ -57,6 +68,7 @@ module.exports = defineConfig({ 'poolifier', 'poolify', 'readonly', + 'resize', 'serializable', 'sinon', 'threadjs', @@ -67,7 +79,8 @@ module.exports = defineConfig({ 'unlink', 'unregister', 'utf8', - 'workerpool' + 'workerpool', + 'wwr' ], skipIfMatch: ['^@.*', '^plugin:.*'] } @@ -79,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', @@ -99,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'