-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.js
57 lines (57 loc) · 1.44 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 = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'prettier/@typescript-eslint',
],
env: {
browser: true,
mocha: true,
},
plugins: ['import', '@typescript-eslint'],
rules: {
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/prefer-interface': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'no-return-assign': 0,
'no-console': [2, { allow: ["warn", "error"] }],
'no-else-return': 2,
'no-var': 2,
'prefer-const': 2,
'valid-jsdoc': 2,
'import/order': [
'error',
{
groups: [
'builtin',
'external',
'internal',
'sibling',
'parent',
'index',
],
'newlines-between': 'always',
},
],
'import/no-named-export': 0,
'import/newline-after-import': 2,
},
settings: {
'import/extensions': ['.js', '.jsx', '.ts', '.tsx', 'json'],
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx', 'json'],
},
},
},
}