-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy patheslint.config.mjs
More file actions
49 lines (48 loc) · 1.69 KB
/
eslint.config.mjs
File metadata and controls
49 lines (48 loc) · 1.69 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
44
45
46
47
48
49
import tsEslint from '@typescript-eslint/eslint-plugin';
import parser from '@typescript-eslint/parser';
export default [
{
files: ['src/**/*.{ts,tsx,js,jsx}'],
languageOptions: {
parser: parser,
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: '.',
extraFileExtensions: ['.ts', '.tsx'],
},
},
plugins: {
'@typescript-eslint': tsEslint,
},
rules: {
'comma-dangle': 'off',
'sort-keys': 'off',
'quote-props': ['error', 'as-needed'],
'import/order': 'off',
'no-console': 'off',
'@typescript-eslint/no-unused-vars': 'off',
eqeqeq: 'off',
'brace-style': 'off',
curly: 'off',
'semi-style': 'off',
'prefer-arrow/prefer-arrow-functions': 'off',
quotes: ['error', 'single', { avoidEscape: true }],
'for-in': 'off',
'@typescript-eslint/naming-convention': 'off',
'no-empty': 'off',
'import/no-extraneous-dependencies': 'off',
'@typescript-eslint/no-string-literal': 'off',
'no-restricted-imports': 'off',
'object-shorthand': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'prefer-ternary': 'off',
'prefer-for-of': 'off',
'@typescript-eslint/member-ordering': 'off',
'prefer-object-spread': 'off',
'eol-last': 'off',
'@typescript-eslint/array-type': 'off',
},
},
];