This repository has been archived by the owner on Mar 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.eslintrc
37 lines (37 loc) · 1.86 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
{
"rules": {
"indent": [2, 2, {"SwitchCase": 1}],
"quotes": [2, "single"],
"semi": [2, "always"],
"brace-style": [1, "1tbs"],
"max-len": [1, 190, 2],
"eol-last": [1],
"wrap-iife": [1, "any"], // require IIFEs to be wrapped in parentheses
"no-with": [2],
"camelcase": [1, {"properties": "never"}], // require camel case vars but not properties
"spaced-comment": [1, "always"], // require a space immediately following the // or /* in a comment
"no-trailing-spaces": [1], // disallow trailing whitespace at the end of lines (fixable)
"comma-dangle": [1], // disallow trailing comma
"new-cap": [1], // require a capital letter for constructors
"dot-notation": [1], // encourages use of dot notation whenever possible
"key-spacing": [1], // enforces spacing around the colon in object literal properties
"curly": [2], // specify curly brace conventions for all control statements
"space-infix-ops": [1], // require spaces around operators (fixable)
"space-before-blocks": [1, "always"], // require or disallow a space before blocks (fixable)
"operator-linebreak": [1, "after"], // enforces a particular operator line break style
"keyword-spacing": [1, {"after": true}], // enforces spacing before and after keywords (fixable)
"no-mixed-spaces-and-tabs": [2, "smart-tabs"], // disallow mixed spaces and tabs for indentation (recommended)
"space-unary-ops": [1, { "words": true, "nonwords": false }], // require or disallow spaces before/after unary operators (fixable)
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"globals": {
"require": true,
"module": true,
"TUNGSTENJS_DEBUG_MODE": true
},
"extends": "eslint:recommended"
}