forked from phcode-dev/phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
115 lines (114 loc) · 3.25 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
110
111
112
113
114
115
/*global module */
module.exports = {
"rules": {
// the rules below should be sorted in a same way they are sorted on http://eslint.org/docs/rules page
// http://eslint.org/docs/rules/#possible-errors
"no-caller": 2,
"no-control-regex": 2,
"no-empty": 1,
"no-invalid-regexp": 2,
"no-regex-spaces": 2,
"no-unsafe-negation": 1,
"valid-jsdoc": 0,
"valid-typeof": 2,
// http://eslint.org/docs/rules/#best-practices
"curly": 2,
"eqeqeq": [2, "smart"],
"guard-for-in": 0,
"no-else-return": 1,
"no-fallthrough": 2,
"no-invalid-this": 1,
"no-iterator": 2,
"no-loop-func": 2,
"no-multi-str": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-new": 2,
"no-proto": 2,
"no-redeclare": 1,
"no-script-url": 2,
"wrap-iife": [2, "outside"],
// http://eslint.org/docs/rules/#strict-mode
"strict": 2,
// http://eslint.org/docs/rules/#variables
"no-shadow-restricted-names": 2,
"no-shadow": 1,
"no-undef": 2,
"no-unused-vars": [1, {"vars": "all", "args": "none"}],
"no-use-before-define": 0,
// http://eslint.org/docs/rules/#nodejs-and-commonjs
"no-new-require": 2,
// http://eslint.org/docs/rules/#stylistic-issues
"block-spacing": 1,
"brace-style": [1, "1tbs", { allowSingleLine: true }],
"camelcase": 1,
"comma-dangle": 2,
"comma-spacing": 1,
"comma-style": [1, "last"],
"computed-property-spacing": 1,
"eol-last": 1,
"func-call-spacing": 1,
"indent": [1, 4],
"key-spacing": [1, { beforeColon: false, afterColon: true }],
"max-len": [1, 120],
"new-cap": [0, {
"capIsNewExceptions": [
"$.Deferred",
"$.Event",
"CodeMirror.Pos",
"Immutable.Map",
"Immutable.List",
"JSLINT"
]
}],
"new-parens": 2,
"no-bitwise": 2,
"no-new-object": 2,
"no-trailing-spaces": 1,
"semi-spacing": 1,
"semi": 2,
"no-async-promise-executor": 2
},
"globals": {
"$": false,
"deferredToPromise": false,
"brackets": false,
"Phoenix": false,
"PhStore": false,
"iconv": false,
"Buffer": true,
"clearTimeout": false,
"console": false,
"define": false,
"require": false,
"setTimeout": false,
"window": false,
"ArrayBuffer": false,
"Uint32Array": false,
"WebSocket": false,
"XMLHttpRequest": false,
"quiet": true
},
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"worker": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true
}
},
"overrides": [{
"files": ["src-node/**/*.js", "src-node/*.js"],
"env": {
"node": true
}
}]
};