-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
165 lines (162 loc) · 2.89 KB
/
.eslintrc.yaml
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
parserOptions:
ecmaVersion: 6
sourceType: module
ecmaFeatures:
modules: true
env:
es6: true
node: true
extends: 'eslint:recommended'
globals:
$: true
Alloy: true
Backbone: true
DIST_ADHOC: false
DIST_STORE: false
ENV_DEV: false
ENV_DEVELOPMENT: false
ENV_PRODUCTION: false
ENV_TEST: false
OS_ANDROID: false
OS_IOS: false
OS_MOBILEWEB: false
OS_WINDOWS: false
Ti: false
Titanium: false
_: true
alert: false
describe: true
it: true
mocha: true
stringify: true
plugins:
- jsdoc
- promise
rules:
array-bracket-spacing:
- error
- always
- arraysInArrays: false
objectsInArrays: false
arrow-spacing:
- error
brace-style:
- error
- 1tbs
- allowSingleLine: true
comma-dangle:
- error
- arrays: always-multiline
exports: always-multiline
functions: ignore
imports: always-multiline
objects: always-multiline
comma-spacing:
- error
- after: true
before: false
curly:
- error
- all
indent:
- error
- tab
- SwitchCase: 1
FunctionExpression:
body: 1
key-spacing:
- error
- multiLine:
align: value
keyword-spacing:
- error
linebreak-style:
- off
- unix
no-case-declarations: off
no-cond-assign: off
no-console: off
no-control-regex: off
# no-fallthrough: off
no-fallthrough: error
no-inner-declarations: off
no-lonely-if: error
no-mixed-spaces-and-tabs: off
no-multiple-empty-lines:
- error
- max: 2
# no-octal: off
no-trailing-spaces:
- error
- skipBlankLines: false
no-undef: error
no-unused-vars:
- warn
- varsIgnorePattern: ^on[A-Z]
no-whitespace-before-property:
- error
object-curly-newline:
- error
- multiline: true
object-curly-spacing:
- error
- always
one-var:
- error
- never
prefer-const:
- error
- destructuring: any
ignoreReadBeforeAssign: false
quotes:
- error
- single
- avoidEscape: true
allowTemplateLiterals: true
require-jsdoc:
- warn
- require:
ArrowFunctionExpression: false
ClassDeclaration: false
FunctionDeclaration: true
MethodDefinition: false
semi:
- error
- always
space-before-blocks:
- error
- always
space-before-function-paren:
- error
- anonymous: always
asyncArrow: always
named: ignore
space-in-parens:
- error
- never
space-infix-ops:
- error
- int32Hint: false
spaced-comment:
- error
- always
- exceptions:
- '-'
- '*'
markers:
- 'TODO:'
- 'HACK:'
- 'FIXME:'
valid-jsdoc:
- warn
- prefer:
arg: param
argument: param
return: returns
preferType:
Boolean: boolean
Number: number
Object: object
String: string
# valid-typeof: off
valid-typeof: error