]>
Piment Noir Git Repositories - poolifier.git/blob - .eslintrc.js
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.json'
31 ignoreDeclarationSort: true
34 'import/order': 'error',
36 'spellcheck/spell-checker': [
106 skipIfMatch: ['^@.*', '^plugin:.*']
113 plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
114 parser: '@typescript-eslint/parser',
116 project: './tsconfig.json'
119 'plugin:@typescript-eslint/recommended',
120 'plugin:@typescript-eslint/recommended-requiring-type-checking',
121 'plugin:import/typescript',
122 'standard-with-typescript'
125 '@typescript-eslint/no-inferrable-types': [
127 { ignoreProperties: true }
129 'tsdoc/syntax': 'warn'
133 files: ['examples/typescript/**/*.ts'],
135 'import/no-unresolved': 'off',
136 '@typescript-eslint/no-unsafe-argument': 'off',
137 '@typescript-eslint/no-unsafe-call': 'off',
138 '@typescript-eslint/no-unsafe-return': 'off',
139 '@typescript-eslint/no-unsafe-assignment': 'off',
140 '@typescript-eslint/no-unsafe-member-access': 'off',
141 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
142 '@typescript-eslint/no-redundant-type-constituents': 'off',
143 '@typescript-eslint/strict-boolean-expressions': 'off',
144 '@typescript-eslint/return-await': 'off'
148 files: ['**/*.js', '**/*.mjs'],
150 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
153 files: ['tests/**/*.js'],
155 'jsdoc/require-jsdoc': 'off'
159 files: ['tests/pools/selection-strategies/**/*.js'],
161 'n/no-missing-require': 'off'
165 files: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
167 'jsdoc/require-jsdoc': 'off'
171 files: ['benchmarks/versus-external-pools/**/*.js'],
173 'n/no-missing-require': 'off'
177 files: ['benchmarks/versus-external-pools/**/*.mjs'],
179 'n/no-missing-import': 'off',
180 'import/no-unresolved': 'off'
184 files: ['examples/javascript/**/*.js'],
186 'n/no-missing-require': 'off',
187 'jsdoc/require-jsdoc': 'off'