forked from EdgeVerve/oe-data-table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
113 lines (113 loc) · 3.8 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
{
"extends": [
"eslint:recommended"
],
"env": {
"browser": true,
"mocha": true
},
"plugins": [
"html"
],
"rules": {
/*
* Possible Errors - http://eslint.org/docs/rules/#possible-errors
*/
"no-console": [ // http://eslint.org/docs/rules/no-console
"error",
{
"allow": [
"warn",
"error"
]
}
],
/*
* Best Practices - http://eslint.org/docs/rules/#best-practices
*/
"array-callback-return": "error", // http://eslint.org/docs/rules/array-callback-return,
"default-case": "error", // http://eslint.org/docs/rules/default-case
"no-eq-null": "error", // http://eslint.org/docs/rules/no-eq-null
"no-lone-blocks": "error", // http://eslint.org/docs/rules/no-lone-blocks
"no-loop-func": "error", // http://eslint.org/docs/rules/no-lone-blocks
"no-multi-str": "error", // http://eslint.org/docs/rules/no-multi-str
"no-new": "error", // http://eslint.org/docs/rules/no-new
"no-new-wrappers": "error", // http://eslint.org/docs/rules/no-new-wrappers
"no-proto": "error", // http://eslint.org/docs/rules/no-proto
"no-return-assign": "error", // http://eslint.org/docs/rules/no-return-assign
"no-script-url": "error", // http://eslint.org/docs/rules/no-script-url
"no-self-compare": "error", // http://eslint.org/docs/rules/no-self-compare
"no-unmodified-loop-condition": "error", // http://eslint.org/docs/rules/no-unmodified-loop-condition
"no-sequences": "error", // http://eslint.org/docs/rules/no-sequences
"no-throw-literal": "error", // http://eslint.org/docs/rules/no-throw-literal
"no-useless-call": "error", // http://eslint.org/docs/rules/no-useless-call
"no-caller": "error", // http://eslint.org/docs/rules/no-caller
"no-useless-concat": "error", // http://eslint.org/docs/rules/no-useless-concat
"dot-notation": [ // http://eslint.org/docs/rules/dot-notation
"error",
{
"allowKeywords": true,
"allowPattern": "^[a-z]+(-[a-z]+)+$"
}
],
"radix": ["error", "as-needed"], // http://eslint.org/docs/rules/radix
/*
* Variables - http: //eslint.org/docs/rules/#variables
*/
"no-label-var": "error", // http://eslint.org/docs/rules/no-label-var
"no-undefined": "off", // http://eslint.org/docs/rules/no-undefined
/*
* Stylistic Issues - http://eslint.org/docs/rules/#stylistic-issues
*/
"camelcase": [ // http://eslint.org/docs/rules/camelcase
"error",
{
"properties": "never"
}
],
"comma-dangle": "error", // http://eslint.org/docs/rules/comma-dangle,
"lines-around-comment": [ // http://eslint.org/docs/rules/lines-around-comment
"error",
{
"beforeBlockComment": true
}
],
"no-inline-comments": "error", // http://eslint.org/docs/rules/no-inline-comments
"no-nested-ternary": "off", // http://eslint.org/docs/rules/no-nested-ternary
"quotes": [ // http://eslint.org/docs/rules/quotes
"error",
"single",
{
"avoidEscape": true
}
],
"no-new-object": "error", // http://eslint.org/docs/rules/no-new-object
"no-array-constructor": "error", // http://eslint.org/docs/rules/no-array-constructor,
"nonblock-statement-body-position": [ // http://eslint.org/docs/rules/nonblock-statement-body-position
"error",
"beside"
]
},
"settings": {
"html/indent": "+2",
"html/report-bad-indent": "error"
},
"globals": {
"Polymer": true,
"MetaPolymer": true,
"expect": true,
"fixture": true,
"sinon": true,
"page": true,
"OEUtils": true,
"HTMLImports": true,
"ev_navigate_to": true,
"I18nMsg": true,
"Platform": true,
"Promise": true,
"MockInteractions": true,
"forceXIfStamp": true,
"assert": true,
"flush": true
}
}