X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc.js;h=bd39bc7e71117b77a99f34f7304123678bd73c27;hb=8c97ee641800a73d02516dad3e6b5172ec477e2d;hp=ff5c0f762a27a0eca3a9e12489bdb32d5aede4fe;hpb=6d0425b42424c7924c4f26ecea79f32a449c469d;p=poolifier.git diff --git a/.eslintrc.js b/.eslintrc.js index ff5c0f76..bd39bc7e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -35,18 +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:.*'] @@ -110,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' @@ -123,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' } }, {