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': [
105 skipIfMatch: ['^@.*', '^plugin:.*']
112 plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
113 parser: '@typescript-eslint/parser',
115 project: './tsconfig.json'
118 'plugin:@typescript-eslint/strict-type-checked',
119 'plugin:@typescript-eslint/stylistic-type-checked',
120 'plugin:import/typescript',
124 'operator-linebreak': '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',
155 '@typescript-eslint/no-non-null-assertion': 'off'
159 files: ['**/*.cjs', '**/*.js', '**/*.mjs'],
161 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
164 files: ['tests/**/*.cjs', 'tests/**/*.js', 'tests/**/*.mjs'],
166 'jsdoc/require-jsdoc': 'off'
171 'benchmarks/**/*.cjs',
172 'benchmarks/**/*.js',
173 'benchmarks/**/*.mjs'
176 'jsdoc/require-jsdoc': 'off'
180 files: ['examples/javascript/**/*.cjs', 'examples/javascript/**/*.js'],
182 'jsdoc/require-jsdoc': 'off'