-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
40 lines (34 loc) · 1.2 KB
/
.eslintrc.js
File metadata and controls
40 lines (34 loc) · 1.2 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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: 'standard-with-typescript',
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
},
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/object-curly-spacing': ['warn', 'never'],
'object-curly-spacing': ['warn', 'never'],
'@typescript-eslint/quotes': 'off',
'no-multi-spaces': 'off',
'padded-blocks': 'off',
'space-before-function-paren': 'off',
'@typescript-eslint/space-before-function-paren': 'off',
'no-trailing-spaces': 'off',
'@typescript-eslint/no-trailing-spaces': 'off',
'comma-dangle': ['warn', 'always-multiline'],
'@typescript-eslint/comma-dangle': ['warn', 'always-multiline'],
'import/consistent-type-specifier-style': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'no-multiple-empty-lines': ['warn', {max: 2, maxEOF: 1}],
},
}