X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=.eslintrc.js;h=bd39bc7e71117b77a99f34f7304123678bd73c27;hb=8c97ee641800a73d02516dad3e6b5172ec477e2d;hp=a3f0793611f69d3c9127a29e1e9ad97452a4a494;hpb=23ff945ac0bc3b9bcf98c6491872cffaac805b73;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index a3f07936..bd39bc7e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -35,21 +35,35 @@ module.exports = defineConfig({ 'warn', { skipWords: [ + 'browserslist', 'christopher', + 'cjs', 'comparator', 'cpu', 'cpus', + 'ctx', 'ecma', 'enum', 'fibonacci', + 'fs', 'inheritDoc', 'jsdoc', + 'microjob', + 'num', 'os', + 'piscina', 'poolifier', + 'poolify', 'readonly', 'serializable', 'sinon', + 'threadjs', + 'threadwork', + 'tsconfig', + 'typedoc', + 'unlink', 'unregister', + 'utf8', 'workerpool' ], skipIfMatch: ['^@.*', '^plugin:.*'] @@ -113,6 +127,16 @@ module.exports = defineConfig({ 'jsdoc/require-returns-type': 'off' } }, + { + files: ['examples/typescript/**/*.ts'], + rules: { + 'import/no-unresolved': 'off', + 'jsdoc/require-jsdoc': 'off', + '@typescript-eslint/no-unsafe-argument': 'off', + '@typescript-eslint/no-unsafe-call': 'off', + '@typescript-eslint/no-unsafe-assignment': 'off' + } + }, { files: ['**/*.js'], extends: 'plugin:node/recommended' @@ -126,8 +150,7 @@ module.exports = defineConfig({ { files: ['tests/pools/selection-strategies/**/*.js'], rules: { - 'node/no-missing-require': 'off', - 'jsdoc/require-jsdoc': 'off' + 'node/no-missing-require': 'off' } }, {