-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
83 lines (83 loc) · 2.69 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
{
// attach range information to each node
"range": true,
// attach line/column location information to each node
"loc": true,
// create a top-level comments array containing all comments
"comments": true,
// attach comments to the closest relevant node as leadingComments and
// trailingComments
"attachComment": true,
// create a top-level tokens array containing all tokens
"tokens": true,
// try to continue parsing if an error is encountered, store errors in a
// top-level errors array
"tolerant": true,
// specify parsing features (default only has blockBinding: true)
"ecmaFeatures": {
// enable parsing of arrow functions
"arrowFunctions": true,
// enable parsing of let/const
"blockBindings": true,
// enable parsing of destructured arrays and objects
"destructuring": true,
// enable parsing of regular expression y flag
"regexYFlag": true,
// enable parsing of regular expression u flag
"regexUFlag": true,
// enable parsing of template strings
"templateStrings": false,
// enable parsing of binary literals
"binaryLiterals": true,
// enable parsing of ES6 octal literals
"octalLiterals": true,
// enable parsing unicode code point escape sequences
"unicodeCodePointEscapes": true,
// enable parsing of default parameters
"defaultParams": false,
// enable parsing of rest parameters
"restParams": true,
// enable parsing of for-of statement
"forOf": true,
// enable parsing computed object literal properties
"objectLiteralComputedProperties": true,
// enable parsing of shorthand object literal methods
"objectLiteralShorthandMethods": true,
// enable parsing of shorthand object literal properties
"objectLiteralShorthandProperties": true,
// Allow duplicate object literal properties (except '__proto__')
"objectLiteralDuplicateProperties": true,
// enable parsing of generators/yield
"generators": true,
// support the spread operator
"spread": true,
// enable React JSX parsing
"jsx": true,
// enable return in global scope
"globalReturn": true
},
"env": {
// defines require() and define() as global variables as per the amd spec.
"amd": true,
// browser global variables.
"browser": true,
// adds all of the Jasmine testing global variables for version 1.3 and 2.0.
"jasmine": true,
// jquery global variables.
//"jquery": true,
// adds all of the Mocha testing global variables.
//"mocha": true,
// Node.js global variables and Node.js-specific rules.
"node": true,
// phantomjs global variables.
//"phantomjs": true,
// prototypejs global variables.
//"prototypejs": true,
// shelljs global variables.
//"shelljs": true
},
"rules": {
// authorize unused parameter
"no-unused-vars": [2, {"vars": "all", "args": "none"}]
}
}