-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
57 lines (57 loc) · 1.48 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
46
47
48
49
50
51
52
53
54
55
56
57
module.exports = {
'env': {
'es6': true
},
'extends': 'eslint:recommended',
'globals': {
'process': true
},
'settings': {
'import/resolver': {
'node': {
'extensions': ['.js', '.jsx', '.ts', '.tsx']
}
}
},
'parser': '@typescript-eslint/parser',
'parserOptions': {
'project': 'tsconfig.json',
'sourceType': 'module'
},
'plugins': [
'@typescript-eslint',
'eslint-plugin-import'
],
'rules': {
'@typescript-eslint/indent': ['error', 4],
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/quotes': [
'error',
'single'
],
'comma-dangle': 'error',
'curly': 'error',
'eqeqeq': [
'error',
'always'
],
'no-trailing-spaces': 'error',
'no-var': 'error',
'prefer-const': 'error',
'no-console': 'error',
'no-unused-vars': ['error', { 'args': 'none' }],
'no-throw-literal': 'error',
'no-trailing-spaces': 'error',
'import/no-extraneous-dependencies': 'error',
'import/no-cycle': 'error',
'import/no-self-import': 'error',
'import/no-unresolved': 'error'
},
'overrides': [{
'files': ['*.ts', '*.tsx'],
'rules': {
'@typescript-eslint/no-unused-vars': [2, { args: 'none' }],
'no-undef': 'off'
}
}]
};