-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
executable file
·46 lines (35 loc) · 1.36 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
40
41
42
43
44
45
46
// vim: syntax=json
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"mocha": true
},
// Start with rules from eslint recommended setting, and override below.
"extends": "eslint:recommended",
// Linting rules are enforced based on the following levels:
// (Reference: http://eslint.org/docs/user-guide/configuring)
// 0: turn the rule off
// 1: turn the rule on as a warning (doesn't affect exit code)
// 2: turn the rule on as an error (exit code is 1 when triggered)
"rules": {
// Use 4 spaces for indentation,
"indent": [2, 2, { "SwitchCase": 1 }],
// Require single quotes for strings.
"quotes": [1],
// Allow 'while (true), do something, break' pattern.
"no-constant-condition": 0,
// Require semicolons where they should be.
"semi": [2],
"no-console": [0],
// Disallow littering with unused variables (except function args).
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
// Don't enforce newline at the end of file.
"eol-last": [0],
// Don't enforce disallowing mixing regular variable and require declarations
"no-mixed-requires": [0],
// Don't enforce disallowing dangling underscores in identifiers
"no-underscore-dangle": [0]
}
}