forked from arqex/react-datetime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (42 loc) · 1.66 KB
/
.eslintrc.js
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
module.exports = {
"env": {
"browser": true
},
"globals": {
"require": true,
"module": true
},
// Enables rules that report common problems,
// see http://eslint.org/docs/rules/ for list
"extends": "eslint:recommended",
"rules": {
// Enforce the use of variables within the scope they are defined
"block-scoped-var": 2,
// Enforce camelcase naming convention
"camelcase": 2,
// Enforce consistent spacing before and after commas
"comma-spacing": 2,
// Enforce at least one newline at the end of files
"eol-last": 2,
// Require the use of === and !==
"eqeqeq": [2, "smart"],
// Enforce consistent spacing before and after keywords
"keyword-spacing": [2, { "before": true, "after": true }],
// Disallow multiple empty lines
"no-multiple-empty-lines": [2, { "max": 1, "maxEOF": 1, "maxBOF": 0 }],
// Enforce the consistent use of the radix argument when using parseInt()
"radix": 2,
// Require or disallow semicolons instead of AS
"semi": 2,
// Enforce consistent spacing before and after semicolons
"semi-spacing": 2,
// Enforce consistent spacing before blocks
"space-before-blocks": 2,
// Enforce consistent spacing inside parentheses
// "space-in-parens": [2, "always"],
// Enforce the consistent use of either backticks, double, or single quotes
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
// Enforce using tabs for indentation
"indent": [2, "tab", { "SwitchCase": 1 }]
}
};