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/no-inferrable-types': [
126 { ignoreProperties
: true }
128 'tsdoc/syntax': 'warn'
132 files
: ['examples/typescript/**/*.ts'],
134 'import/no-unresolved': [
149 '@typescript-eslint/no-unsafe-argument': 'off',
150 '@typescript-eslint/no-unsafe-call': 'off',
151 '@typescript-eslint/no-unsafe-return': 'off',
152 '@typescript-eslint/no-unsafe-assignment': 'off',
153 '@typescript-eslint/no-unsafe-member-access': 'off',
154 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
155 '@typescript-eslint/no-redundant-type-constituents': 'off',
156 '@typescript-eslint/strict-boolean-expressions': 'off',
157 '@typescript-eslint/return-await': 'off'
161 files
: ['**/*.js', '**/*.mjs'],
163 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
166 files
: ['tests/**/*.js', 'tests/**/*.mjs'],
168 'jsdoc/require-jsdoc': 'off'
172 files
: ['benchmarks/**/*.js', 'benchmarks/**/*.mjs'],
174 'jsdoc/require-jsdoc': 'off'
178 files
: ['examples/javascript/**/*.js'],
180 'jsdoc/require-jsdoc': 'off'