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': [
92 skipIfMatch
: ['^@.*', '^plugin:.*']
99 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
100 parser
: '@typescript-eslint/parser',
102 project
: './tsconfig.eslint.json'
105 'plugin:@typescript-eslint/recommended',
106 'plugin:@typescript-eslint/recommended-requiring-type-checking',
107 'plugin:import/typescript',
108 'standard-with-typescript'
111 '@typescript-eslint/no-inferrable-types': [
113 { ignoreProperties
: true }
115 'tsdoc/syntax': 'warn'
119 files
: ['examples/typescript/**/*.ts'],
121 'import/no-unresolved': 'off',
122 '@typescript-eslint/no-unsafe-argument': 'off',
123 '@typescript-eslint/no-unsafe-call': 'off',
124 '@typescript-eslint/no-unsafe-return': 'off',
125 '@typescript-eslint/no-unsafe-assignment': 'off',
126 '@typescript-eslint/no-unsafe-member-access': 'off',
127 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
128 '@typescript-eslint/strict-boolean-expressions': 'off',
129 '@typescript-eslint/restrict-template-expressions': 'off',
130 '@typescript-eslint/return-await': 'off'
134 files
: ['**/*.js', '**/*.mjs'],
136 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
139 files
: ['tests/**/*.js'],
141 'jsdoc/require-jsdoc': 'off'
145 files
: ['tests/pools/selection-strategies/**/*.js'],
147 'n/no-missing-require': 'off'
151 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
153 'jsdoc/require-jsdoc': 'off'
157 files
: ['benchmarks/versus-external-pools/**/*.js'],
159 'n/no-missing-require': 'off'
163 files
: ['benchmarks/versus-external-pools/**/*.mjs'],
165 'n/no-missing-import': 'off',
166 'import/no-unresolved': 'off'
170 files
: ['examples/javascript/**/*.js'],
172 'n/no-missing-require': 'off',
173 'jsdoc/require-jsdoc': 'off'