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': [
150 '@typescript-eslint/no-unsafe-argument': 'off',
151 '@typescript-eslint/no-unsafe-call': 'off',
152 '@typescript-eslint/no-unsafe-return': 'off',
153 '@typescript-eslint/no-unsafe-assignment': 'off',
154 '@typescript-eslint/no-unsafe-member-access': 'off',
155 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
156 '@typescript-eslint/no-redundant-type-constituents': 'off',
157 '@typescript-eslint/strict-boolean-expressions': 'off',
158 '@typescript-eslint/return-await': 'off'
162 files
: ['**/*.js', '**/*.mjs'],
164 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
167 files
: ['tests/**/*.js', 'tests/**/*.mjs'],
169 'jsdoc/require-jsdoc': 'off'
173 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
175 'jsdoc/require-jsdoc': 'off'
179 files
: ['examples/javascript/**/*.js'],
181 'jsdoc/require-jsdoc': 'off'