forked from victortrusov/react-router-loading
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
84 lines (84 loc) · 1.84 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
module.exports = {
root: true,
'env': {
'browser': true,
'es2021': true
},
ignorePatterns: [
'node_modules/**',
'**/dist/**',
],
'extends': [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended'
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaFeatures': {
'jsx': true
},
'ecmaVersion': 'latest',
'sourceType': 'module'
},
'plugins': [
'react',
'@typescript-eslint'
],
'rules': {
'no-var': 'error',
'no-undef': 'off',
'no-empty': 'off',
'no-console': 'warn',
'no-debugger': 'warn',
'prefer-const': 'warn',
'camelcase': 'warn',
'indent': [
'warn',
2,
{
'SwitchCase': 1
}
],
'linebreak-style': [
'warn',
'unix'
],
'quotes': [
'warn',
'single',
{
'avoidEscape': true
}
],
'semi': [
'warn',
'always'
],
'comma-dangle': [
'warn',
'only-multiline'
],
'key-spacing': 'warn',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/member-delimiter-style': 'warn',
'@typescript-eslint/type-annotation-spacing': 'warn',
'@typescript-eslint/comma-spacing': 'warn',
'@typescript-eslint/func-call-spacing': 'warn',
'@typescript-eslint/keyword-spacing': 'warn',
'@typescript-eslint/object-curly-spacing': [
'warn',
'always'
],
'@typescript-eslint/space-before-function-paren': ['warn', {
'anonymous': 'never',
'named': 'never',
'asyncArrow': 'always'
}],
'react/prop-types': 'off'
}
};