-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy path.eslintrc.js
More file actions
28 lines (28 loc) · 746 Bytes
/
Copy path.eslintrc.js
File metadata and controls
28 lines (28 loc) · 746 Bytes
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
module.exports = {
parser: '@typescript-eslint/parser',
env: {
browser: true,
commonjs: true,
es6: true,
node: true
},
extends: [
'plugin:@typescript-eslint/recommended'
],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: { jsx: true },
},
rules: {
'indent': ['error', 2],
'max-len': 0,
'no-trailing-spaces': 1,
'prefer-const': 0,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-explicit-any': 'error',
// `!` is used throughout as a deliberate style where the compiler can't follow the
// reasoning. NOTE: typescript-eslint v8 dropped this rule from 'recommended' too.
'@typescript-eslint/no-non-null-assertion': 0,
}
};