-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
109 lines (109 loc) · 2.36 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
module.exports = {
parser: 'babel-eslint',
env: {
node: true,
browser: true,
es6: true,
},
overrides: [
{
files: ['**/*.test.js'],
env: {
jest: true,
},
},
],
extends: [
'airbnb-base',
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:jest/recommended',
'prettier',
],
plugins: ['jest', 'import'],
globals: {
window: false,
},
parserOptions: {
ecmaVersion: 2018,
ecmaFeatures: {
jsx: true,
},
sourceType: 'module',
},
rules: {
'global-require': 0,
'func-names': 0,
'max-len': 0,
'no-continue': 0,
camelcase: 0,
'no-console': 1,
'no-underscore-dangle': 0,
'linebreak-style': ['off', 'windows'],
'no-param-reassign': 0,
'object-curly-newline': 0,
'class-methods-use-this': 0,
'new-cap': 0,
'guard-for-in': 0,
'no-restricted-syntax': ['error', 'WithStatement'],
'no-plusplus': 0,
'no-irregular-whitespace': 0,
'default-case': 0,
'no-restricted-properties': 0,
eqeqeq: 1,
radix: 0,
'arrow-parens': 0,
'consistent-return': 0,
'prefer-rest-params': 0,
'no-script-url': 0,
'operator-linebreak': 0,
'max-classes-per-file': 0,
semi: ['error', 'never'],
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
},
],
quotes: ['error', 'single'],
'quote-props': ['error', 'as-needed'],
'eol-last': ['error', 'always'],
'no-await-in-loop': 0,
'no-trailing-spaces': 2,
'jest/expect-expect': 'off',
'jest/no-disabled-tests': 'off',
'import/newline-after-import': 0,
'import/prefer-default-export': 0,
'import/no-self-import': 0,
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
},
],
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal'],
'newlines-between': 'always',
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.json'],
moduleDirectory: ['node_modules', './'],
},
},
},
}