-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
41 lines (41 loc) · 896 Bytes
/
.eslintrc.js
File metadata and controls
41 lines (41 loc) · 896 Bytes
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
module.exports = {
env: {
node: true,
es6: true,
mocha: true
},
parser: 'babel-eslint',
extends: 'eslint:recommended',
parserOptions: {
sourceType: 'module',
ecmaVersion: 8,
ecmaFeatures: {
jsx: true
}
},
rules: {
indent: ['error', 2, { SwitchCase: 1 }],
quotes: ['error', 'single'],
'new-cap': 'off',
'newline-after-var': 'off',
'no-unused-vars': 'off',
'no-invalid-this': 'off',
'guard-for-in': 'off',
'no-console': 'off',
'no-undefined': 'off',
'array-bracket-spacing': 'off',
'no-unused-expressions': 'off',
'linebreak-style': 'off',
'func-style': 'off',
'comma-dangle': ['error', 'never']
},
plugins: ['react'],
globals: {
window: true,
document: true,
EASY_ENV_IS_PROD: true,
EASY_ENV_IS_NODE: true,
EASY_ENV_IS_BROWSER: true,
EASY_ENV_IS_DEV: true
}
};