-// @ts-check
const { defineConfig } = require('eslint-define-config')
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',
'builtins',
'christopher',
'cjs',
+ 'cloneable',
'comparator',
'cpu',
'cpus',
'ctx',
'deprecations',
'dequeue',
+ 'dequeued',
'ecma',
+ 'elu',
'enqueue',
'enum',
'errored',
'mjs',
'num',
'os',
+ 'perf',
'piscina',
'pnpm',
'poolifier',
'poolify',
'readonly',
'resize',
- 'serializable',
'sinon',
'threadjs',
'threadwork',
+ 'tinypool',
'tsconfig',
'tsdoc',
'typedoc',
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
parser: '@typescript-eslint/parser',
parserOptions: {
- project: './tsconfig.json'
+ project: './tsconfig.eslint.json'
},
extends: [
'plugin:@typescript-eslint/eslint-recommended',
{
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'
}
},
{
- files: ['benchmarks/**/*.js'],
+ files: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
rules: {
'jsdoc/require-jsdoc': 'off'
}
'n/no-missing-require': 'off'
}
},
+ {
+ files: ['benchmarks/versus-external-pools/**/*.mjs'],
+ rules: {
+ 'n/no-missing-import': 'off',
+ 'import/no-unresolved': 'off'
+ }
+ },
{
files: ['examples/**/*.js'],
rules: {