-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
118 lines (101 loc) · 3.09 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
{
"extends": "airbnb/base",
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true
},
"env": {
"browser": true,
"jquery": true,
"mocha": true
},
"globals": {
"f_consume_model": true,
"f_get_model": true,
"Pogo": true
},
"rules": {
// http://eslint.org/docs/rules/array-callback-return
"array-callback-return": 0,
// http://eslint.org/docs/rules/arrow-parens
"arrow-parens": [2, "as-needed"],
// http://eslint.org/docs/rules/no-use-before-define
"no-use-before-define": [1, { "functions": true, "classes": true }],
// http://eslint.org/docs/rules/no-plusplus
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
// http://eslint.org/docs/rules/indent
"indent": [
2,
4,
{
"SwitchCase": 1
}
],
// http://eslint.org/docs/rules/max-len
"max-len": [
1,
100,
4,
{
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": false,
"ignoreTemplateLiterals": false
}
],
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
"import/order": [
2,
{
groups: [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"newlines-between": "never"
}
],
// http://eslint.org/docs/rules/comma-dangle
"comma-dangle": ["error", "never"],
// http://eslint.org/docs/2.0.0/rules/no-confusing-arrow
"no-confusing-arrow": 0,
// https://eslint.org/docs/rules/no-warning-comments
"no-warning-comments": "warn",
// http://eslint.org/docs/rules/quotes
quotes: ["error", "single", {
avoidEscape: true,
allowTemplateLiterals: true
}],
// http://eslint.org/docs/rules/object-curly-spacing
"object-curly-spacing": [
2,
"never"
],
// http://eslint.org/docs/rules/sort-keys
"sort-keys": "error",
// http://eslint.org/docs/rules/sort-vars
"sort-vars": "error"
}
}