-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
36 lines (36 loc) · 1.38 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
{
"env": {
"browser": 1, //browser global variables.
"jquery": 1, //jquery global variables.
"amd": 1 //RequireJS
},
"globals": { //Specifying other globals that are exposed in the current project
"chrome": 1
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "script",
"ecmaFeatures": {
"impliedStrict": false
}
},
"rules": {
"strict": [2, "global"], //controls location of Use Strict Directives
"valid-jsdoc": [1, {
"requireReturn": false,
"requireReturnDescription": false
}],
"one-var": [1, "never"], //allow or disallow one variable declaration per function
"eqeqeq": 1, //require the use of === and !==
"quotes": [1, "single"], //specify whether backticks, double or single quotes should be used
"no-script-url": 1, //disallow use of javascript: urls.
"curly": 1, //specify curly brace conventions for all control statements
"latedef": 0,
"no-unused-vars": 1, //disallow declaration of variables that are not used in the code
"guard-for-in": 1, //make sure for-in loops have an if statement
"no-mixed-spaces-and-tabs": [2,"smart-tabs"], //disallow mixed spaces and tabs for indentation
"key-spacing": 0, //enforces spacing between keys and values in object literal properties (disabled)
"no-multi-spaces": 0, // disallow use of multiple spaces (disabled)
"no-trailing-spaces": 0
}
}