-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
148 lines (108 loc) · 2.83 KB
/
.eslintrc
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"env": {
"es6": true,
"node": true
},
"rules": {
////
// Objects
// Use the literal syntax for object creation.
"no-new-object": 2,
// Don't use reserved words as keys.
"no-reserved-keys": 2,
////
////
// Arrays : Use the literal syntax for array creation.
"no-array-constructor": 2,
////
////
// Strings
// Use single quotes for strings
"quotes": [2, "single"],
// Strings longer than 120 characters should be written across multiple
// lines using string concatenation.
"max-len": [2, 120, 4],
////
// Functions
// no-loop-func: false...
// TODO: Never name a parameter arguments
// Properties
// Use dot notation
dot-notation: 2,
////
// Variables
// Always use var to declare variables.
"no-undef": 2,
// XXX: Use one var declaration per variable.
"no-sequences": 2,
// TODO: Declare unassigned variables last.
// Assign variables at the top of their scope
"vars-on-top": 2,
////
////
// Hoisting
"no-use-before-define": 2,
////
"eqeqeq" : 0,
//TODO: Use shortcuts.
////
////
// Blocks
// Use braces with all multi-line blocks.
"curly": [2, "multi-line"],
////
////
// Comments
// Use /** ... */ for multiline comments use Include a description,
// specify types and values for all parameters and return values.
"valid-jsdoc": [1 , {}],
// Use // for single line comments. Place single line comments on a newline
// above the subject of the comment. Put an empty line before the comment.
// TODO:
// Prefixing your comments with FIXME or TODO
"no-warning-comments": false,
////
////
// Whitespace
// Use soft tabs set to 2 spaces.
"indent": [2, 2],
// Place 1 space before the leading brace
"space-before-blocks": 2,
// Set off operators with spaces
"space-infix-ops": 2,
// End files with a single newline character
"eol-last": 2,
// TODO: Use indentation when making long method chains.
// TODO: Leave a blank line after blocks and before the next statement
////
////
// Commas
// Leading commas: Nope.
"comma-style": [2, "last"],
// Additional trailing comma: Nope.
"comma-dangle": 2,
////
////
// Semicolons
"semi": 2,
////
//// Type Casting & Coercion
// Use parseInt for Numbers and always with a radix for type casting.
radix: 2,
// Booleans:
"no-new-wrappers": 2,
////
//// Naming Conventions
// TODO: Avoid single letter names. Be descriptive with your naming.
// XXX: Use camelCase when naming objects, functions, and instances.
"camelcase": 2,
// Use PascalCase when naming constructors or classes.
"new-cap": [2, {}],
// Use a leading underscore _ when naming private properties.
"no-underscore-dangle": false,
// When saving a reference to this use _this.
"consistent-this": [2, "_this"],
"strict": 2,
"consistent-return": 0
}
}