-
Notifications
You must be signed in to change notification settings - Fork 2
/
syntax.js
57 lines (39 loc) · 1.48 KB
/
syntax.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
"use strict";
module.exports = {
rules: {
// encourages use of dot notation whenever possible
"dot-notation": "error",
// disallow the omission of parentheses when invoking a constructor with no arguments
"new-parens": "error",
// disallow use of arguments.caller or arguments.callee
"no-caller": "error",
// disallow use of labeled statements
"no-labels": "error",
// disallow use of multiline strings
"no-multi-str": "error",
// disallow usage of __proto__ property
"no-proto": "error",
// disallow use of comma operator
"no-sequences": "error",
// disallow shadowing of names such as arguments
"no-shadow-restricted-names": "error",
// disallow use of undefined when initializing variables
"no-undef-init": "error",
// disallow multi-line statements that could be confused for separte ASI statements
"no-unexpected-multiline": "error",
// disallow the use of ternary operators when a simpler alternative exists
"no-unneeded-ternary": "error",
// disallow unnecessary .call() and .apply()
"no-useless-call": "error",
// disallow unnecessary concatenation of string literals
"no-useless-concat": "error",
// disallow use of void operator
"no-void": "error",
// disallow use of the with statement
"no-with": "error",
// require assignment operator shorthand where possible
"operator-assignment": "error",
// disallow Yoda conditions
yoda: "error",
}
};