forked from eclipsesource/tabris-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
39 lines (39 loc) · 1.07 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
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"node": true,
"es6": true
},
"globals": {
"tabris": false
},
"rules": {
"no-empty": "off",
"no-console": "off",
"no-control-regex": "off",
"semi": "error",
"eqeqeq": ["error", "allow-null"],
"indent": ["error", 2, {"SwitchCase": 1}],
"linebreak-style": ["error", "unix"],
"no-trailing-spaces": "error",
"space-in-parens": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "never"],
"space-before-blocks": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"max-len": ["error", 120, 2, {"ignoreUrls": true, "ignorePattern": "\\/\\^"}],
"quotes": ["error", "single", "avoid-escape"],
"curly": ["error", "all"],
"eol-last": "error",
"no-with": "error",
"no-var": "error",
"prefer-arrow-callback": "error",
"arrow-body-style": ["error", "as-needed"],
"object-shorthand": ["error", "always"]
}
}