settings: {
'import/resolver': {
typescript: {
- project: './tsconfig.eslint.json'
+ project: './tsconfig.json'
}
}
},
skipWords: [
'axios',
'benoit',
- 'benny',
'browserslist',
'builtins',
'christopher',
'comparator',
'cpu',
'cpus',
+ 'cryptographically',
'ctx',
'deprecations',
+ 'deque',
'dequeue',
'dequeued',
+ 'deregisters',
+ 'dts',
'ecma',
'elu',
'enqueue',
'fibonacci',
'fp',
'fs',
+ 'func',
'inheritDoc',
+ 'javascript',
'jsdoc',
+ 'localhost',
'microjob',
'mjs',
+ 'nodemailer',
+ 'npx',
'num',
'os',
'perf',
'piscina',
'pnpm',
'poolifier',
- 'poolify',
+ 'prepend',
+ 'prepends',
+ 'readdir',
'readonly',
'req',
'resize',
'sinon',
+ 'smtp',
'threadjs',
'threadwork',
'tinypool',
'typedoc',
'unlink',
'unref',
- 'unregister',
'utf8',
+ 'webcrypto',
'workerpool',
+ 'ws',
+ 'wss',
'wwr'
],
skipIfMatch: ['^@.*', '^plugin:.*']
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
parser: '@typescript-eslint/parser',
parserOptions: {
- project: './tsconfig.eslint.json'
+ project: './tsconfig.json'
},
extends: [
'plugin:@typescript-eslint/recommended',
{
files: ['examples/typescript/**/*.ts'],
rules: {
- 'import/no-unresolved': 'off',
+ 'import/no-unresolved': [
+ 'error',
+ {
+ ignore: [
+ '^axios$',
+ '^express$',
+ '^fastify$',
+ '^fastify-plugin$',
+ '^node-fetch$',
+ '^nodemailer$',
+ '^poolifier$',
+ '^ws$'
+ ]
+ }
+ ],
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
+ '@typescript-eslint/no-redundant-type-constituents': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
- '@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/return-await': 'off'
}
},
extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
},
{
- files: ['tests/**/*.js'],
+ files: ['tests/**/*.js', 'tests/**/*.mjs'],
rules: {
'jsdoc/require-jsdoc': 'off'
}
},
- {
- files: ['tests/pools/selection-strategies/**/*.js'],
- rules: {
- 'n/no-missing-require': 'off'
- }
- },
{
files: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
rules: {
'jsdoc/require-jsdoc': 'off'
}
},
- {
- files: ['benchmarks/versus-external-pools/**/*.js'],
- rules: {
- 'n/no-missing-require': 'off'
- }
- },
- {
- files: ['benchmarks/versus-external-pools/**/*.mjs'],
- rules: {
- 'n/no-missing-import': 'off',
- 'import/no-unresolved': 'off'
- }
- },
{
files: ['examples/javascript/**/*.js'],
rules: {
- 'n/no-missing-require': 'off',
'jsdoc/require-jsdoc': 'off'
}
}