-
Notifications
You must be signed in to change notification settings - Fork 265
Expand file tree
/
Copy patheslint.config.js
More file actions
43 lines (42 loc) · 1.13 KB
/
eslint.config.js
File metadata and controls
43 lines (42 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// ESLint flat config for ESLint v9+
/** @type {import('eslint').Linter.FlatConfig[]} */
module.exports = [
{
ignores: [
'node_modules',
'coverage',
'artifacts',
'build',
'docs',
'typechain-types', // Exclude generated types
],
},
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parser: require('@typescript-eslint/parser'),
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
},
plugins: {
'@typescript-eslint': require('@typescript-eslint/eslint-plugin'),
},
rules: {
'indent': ['error', 2],
'no-undef': 'off',
'prefer-const': 'off',
'no-console': 'off',
'linebreak-style': 'off',
'operator-linebreak': 'off',
'object-curly-newline': 'off',
'arrow-body-style': 'off',
...require('@typescript-eslint/eslint-plugin').configs.recommended.rules,
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
},
},
];