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': [
105 skipIfMatch
: ['^@.*', '^plugin:.*']
112 plugins
: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
113 parser
: '@typescript-eslint/parser',
115 project
: './tsconfig.json'
118 'plugin:@typescript-eslint/recommended',
119 'plugin:@typescript-eslint/recommended-requiring-type-checking',
120 'plugin:import/typescript',
121 'standard-with-typescript'
124 '@typescript-eslint/non-nullable-type-assertion-style': 'off',
125 'tsdoc/syntax': 'warn'
129 files
: ['examples/typescript/**/*.ts'],
131 'import/no-unresolved': [
146 '@typescript-eslint/no-unsafe-argument': 'off',
147 '@typescript-eslint/no-unsafe-call': 'off',
148 '@typescript-eslint/no-unsafe-return': 'off',
149 '@typescript-eslint/no-unsafe-assignment': 'off',
150 '@typescript-eslint/no-unsafe-member-access': 'off',
151 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
152 '@typescript-eslint/no-redundant-type-constituents': 'off',
153 '@typescript-eslint/strict-boolean-expressions': 'off',
154 '@typescript-eslint/return-await': 'off'
158 files
: ['**/*.js', '**/*.mjs'],
160 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
163 files
: ['tests/**/*.js', 'tests/**/*.mjs'],
165 'jsdoc/require-jsdoc': 'off'
169 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
171 'jsdoc/require-jsdoc': 'off'
175 files
: ['examples/javascript/**/*.js'],
177 'jsdoc/require-jsdoc': 'off'