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': [
107 skipIfMatch: ['^@.*', '^plugin:.*']
114 plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
115 parser: '@typescript-eslint/parser',
117 project: './tsconfig.json'
120 'plugin:@typescript-eslint/strict-type-checked',
121 'plugin:@typescript-eslint/stylistic-type-checked',
122 'plugin:import/typescript',
126 'operator-linebreak': 'off',
127 'tsdoc/syntax': 'warn'
131 files: ['examples/typescript/**/*.ts'],
133 'import/no-unresolved': [
148 '@typescript-eslint/no-unsafe-argument': 'off',
149 '@typescript-eslint/no-unsafe-call': 'off',
150 '@typescript-eslint/no-unsafe-return': 'off',
151 '@typescript-eslint/no-unsafe-assignment': 'off',
152 '@typescript-eslint/no-unsafe-member-access': 'off',
153 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
154 '@typescript-eslint/no-redundant-type-constituents': 'off',
155 '@typescript-eslint/strict-boolean-expressions': 'off',
156 '@typescript-eslint/return-await': 'off',
157 '@typescript-eslint/no-non-null-assertion': 'off'
161 files: ['**/*.cjs', '**/*.js', '**/*.mjs'],
163 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
166 files: ['tests/**/*.cjs', 'tests/**/*.js', 'tests/**/*.mjs'],
168 'jsdoc/require-jsdoc': 'off'
173 'benchmarks/**/*.cjs',
174 'benchmarks/**/*.js',
175 'benchmarks/**/*.mjs'
178 'jsdoc/require-jsdoc': 'off'
182 files: ['examples/javascript/**/*.cjs', 'examples/javascript/**/*.js'],
184 'jsdoc/require-jsdoc': 'off'