settings: {
'import/resolver': {
typescript: {
- project: './tsconfig.eslint.json'
+ project: './tsconfig.json'
}
}
},
skipWords: [
'axios',
'benoit',
- 'benny',
'browserslist',
'builtins',
'christopher',
'deque',
'dequeue',
'dequeued',
+ 'deregisters',
+ 'dts',
'ecma',
'elu',
'enqueue',
'fibonacci',
'fp',
'fs',
+ 'func',
'inheritDoc',
'javascript',
'jsdoc',
'typedoc',
'unlink',
'unref',
- 'unregister',
'utf8',
- 'webcrypto',
'workerpool',
'ws',
'wss',
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
parser: '@typescript-eslint/parser',
parserOptions: {
- project: './tsconfig.eslint.json'
+ project: './tsconfig.json'
},
extends: [
'plugin:@typescript-eslint/recommended',
'standard-with-typescript'
],
rules: {
- '@typescript-eslint/no-inferrable-types': [
- 'error',
- { ignoreProperties: true }
- ],
+ '@typescript-eslint/non-nullable-type-assertion-style': 'off',
'tsdoc/syntax': 'warn'
}
},
{
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',
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'
}
}