1 const { defineConfig
} = require('eslint-define-config')
3 module
.exports
= defineConfig({
14 plugins
: ['promise', 'spellcheck'],
17 'plugin:import/recommended',
18 'plugin:promise/recommended'
23 project
: './tsconfig.eslint.json'
31 ignoreDeclarationSort
: true
34 'import/order': 'error',
36 'spellcheck/spell-checker': [
100 skipIfMatch
: ['^@.*', '^plugin:.*']
107 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
108 parser
: '@typescript-eslint/parser',
110 project
: './tsconfig.eslint.json'
113 'plugin:@typescript-eslint/recommended',
114 'plugin:@typescript-eslint/recommended-requiring-type-checking',
115 'plugin:import/typescript',
116 'standard-with-typescript'
119 '@typescript-eslint/no-inferrable-types': [
121 { ignoreProperties
: true }
123 'tsdoc/syntax': 'warn'
127 files
: ['examples/typescript/**/*.ts'],
129 'import/no-unresolved': 'off',
130 '@typescript-eslint/no-unsafe-argument': 'off',
131 '@typescript-eslint/no-unsafe-call': 'off',
132 '@typescript-eslint/no-unsafe-return': 'off',
133 '@typescript-eslint/no-unsafe-assignment': 'off',
134 '@typescript-eslint/no-unsafe-member-access': 'off',
135 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
136 '@typescript-eslint/strict-boolean-expressions': 'off',
137 '@typescript-eslint/return-await': 'off'
141 files
: ['**/*.js', '**/*.mjs'],
143 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
146 files
: ['tests/**/*.js'],
148 'jsdoc/require-jsdoc': 'off'
152 files
: ['tests/pools/selection-strategies/**/*.js'],
154 'n/no-missing-require': 'off'
158 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
160 'jsdoc/require-jsdoc': 'off'
164 files
: ['benchmarks/versus-external-pools/**/*.js'],
166 'n/no-missing-require': 'off'
170 files
: ['benchmarks/versus-external-pools/**/*.mjs'],
172 'n/no-missing-import': 'off',
173 'import/no-unresolved': 'off'
177 files
: ['examples/javascript/**/*.js'],
179 'n/no-missing-require': 'off',
180 'jsdoc/require-jsdoc': 'off'