-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
45 lines (43 loc) · 1.45 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es2020: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 11,
sourceType: 'module',
project: './tsconfig.json',
},
plugins: [
'@typescript-eslint',
],
rules: {
indent: ['error', 4],
'prefer-template': 'warn',
'space-before-blocks': 'error',
"@typescript-eslint/no-inferrable-types": ["off"],
'@typescript-eslint/no-empty-function': ["warn"],
'@typescript-eslint/type-annotation-spacing': 'error',
// note you must disable the base rule as it can report incorrect errors
"brace-style": "off",
"@typescript-eslint/brace-style": ["error"],
'func-call-spacing': "off",
"@typescript-eslint/func-call-spacing": ["error"],
"comma-spacing": "off",
"@typescript-eslint/comma-spacing": ["error"],
"keyword-spacing": "off",
"@typescript-eslint/keyword-spacing": ["error"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn"],
"no-extra-semi": "off",
"@typescript-eslint/no-extra-semi": ["error"],
"no-extra-parens": "off",
"@typescript-eslint/no-extra-parens": ["error"],
},
};