-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
49 lines (48 loc) · 1.06 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
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
extends: 'standard',
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2017,
sourceType: "module"
},
env: {
browser: false,
node: true
},
globals: {
'android': true,
'java': true,
'org': true,
'javax': true,
'byte': true,
'TNS_ENV': true,
'NSObject': true,
'PSWebSocketDelegate': true,
'NSMutableURLRequest': true,
'NSURL': true,
'PSWebSocket': true
},
rules: {
'standard/computed-property-even-spacing': [4, 'off'],
'no-useless-constructor': 'off',
'no-console': 'off',
'no-debugger': 'off',
'indent': ['error', 2],
'one-var': [
'error',
{
'var': 'never',
'let': 'never',
'const': 'never'
}
],
'semi': [2, 'never'],
'arrow-parens': 0,
'generator-star-spacing': 'off',
'no-debugger': (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'homolog') ? 'error' : 'off',
'no-new': 0,
'no-fallthrough': 'off'
}
}