1 const { defineConfig } = require('eslint-define-config')
3 module.exports = defineConfig({
14 plugins: ['simple-import-sort', 'promise', 'spellcheck'],
17 'plugin:import/recommended',
18 'plugin:promise/recommended'
23 project: './tsconfig.json'
28 'simple-import-sort/imports': 'error',
29 'simple-import-sort/exports': 'error',
31 'spellcheck/spell-checker': [
104 skipIfMatch: ['^@.*', '^plugin:.*']
111 plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
112 parser: '@typescript-eslint/parser',
114 project: './tsconfig.json'
117 'plugin:@typescript-eslint/strict-type-checked',
118 'plugin:@typescript-eslint/stylistic-type-checked',
119 'plugin:import/typescript',
123 'operator-linebreak': 'off',
124 'tsdoc/syntax': 'warn'
128 files: ['examples/typescript/**/*.ts'],
130 'import/no-unresolved': [
145 '@typescript-eslint/no-unsafe-argument': 'off',
146 '@typescript-eslint/no-unsafe-call': 'off',
147 '@typescript-eslint/no-unsafe-return': 'off',
148 '@typescript-eslint/no-unsafe-assignment': 'off',
149 '@typescript-eslint/no-unsafe-member-access': 'off',
150 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
151 '@typescript-eslint/no-redundant-type-constituents': 'off',
152 '@typescript-eslint/strict-boolean-expressions': 'off',
153 '@typescript-eslint/return-await': 'off',
154 '@typescript-eslint/no-non-null-assertion': 'off'
158 files: ['**/*.cjs', '**/*.js', '**/*.mjs'],
160 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
163 files: ['tests/**/*.cjs', 'tests/**/*.js', 'tests/**/*.mjs'],
165 'jsdoc/require-jsdoc': 'off'
170 'benchmarks/**/*.cjs',
171 'benchmarks/**/*.js',
172 'benchmarks/**/*.mjs'
175 'jsdoc/require-jsdoc': 'off'
179 files: ['examples/javascript/**/*.cjs', 'examples/javascript/**/*.js'],
181 'jsdoc/require-jsdoc': 'off'