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': [
101 skipIfMatch: ['^@.*', '^plugin:.*']
108 plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc'],
109 parser: '@typescript-eslint/parser',
111 project: './tsconfig.json'
114 'plugin:@typescript-eslint/strict-type-checked',
115 'plugin:@typescript-eslint/stylistic-type-checked',
116 'plugin:import/typescript',
120 'operator-linebreak': 'off',
121 'tsdoc/syntax': 'warn'
125 files: ['examples/typescript/**/*.ts'],
127 'import/no-unresolved': [
142 '@typescript-eslint/no-unsafe-argument': 'off',
143 '@typescript-eslint/no-unsafe-call': 'off',
144 '@typescript-eslint/no-unsafe-return': 'off',
145 '@typescript-eslint/no-unsafe-assignment': 'off',
146 '@typescript-eslint/no-unsafe-member-access': 'off',
147 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
148 '@typescript-eslint/no-redundant-type-constituents': 'off',
149 '@typescript-eslint/strict-boolean-expressions': 'off',
150 '@typescript-eslint/return-await': 'off',
151 '@typescript-eslint/no-non-null-assertion': 'off'
155 files: ['**/*.cjs', '**/*.js', '**/*.mjs'],
157 extends: ['plugin:n/recommended', 'plugin:jsdoc/recommended', 'standard']
160 files: ['tests/**/*.cjs', 'tests/**/*.js', 'tests/**/*.mjs'],
162 'jsdoc/require-jsdoc': 'off'
167 'benchmarks/**/*.cjs',
168 'benchmarks/**/*.js',
169 'benchmarks/**/*.mjs'
172 'jsdoc/require-jsdoc': 'off'
176 files: ['examples/javascript/**/*.cjs', 'examples/javascript/**/*.js'],
178 'jsdoc/require-jsdoc': 'off'