forked from web-platform-tests/wpt.fyi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
37 lines (37 loc) · 912 Bytes
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es6": true,
"mocha": true
},
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"globals": {
"assert": true,
"expect": true,
"fixture": true,
"flush": true,
"sandbox": true,
"sinon": true
},
"rules": {
"brace-style": ["error", "1tbs"],
"curly": ["error", "all"],
"eqeqeq": ["error", "always"],
"func-call-spacing": ["error", "never"],
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"no-console": ["error", { "allow": ["assert"] }],
"no-mixed-spaces-and-tabs": ["error"],
"no-redeclare": ["error"],
"no-trailing-spaces": ["error"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"strict": ["error", "global"],
"yoda": ["error"]
}
}