Layne Anderson
2017-01-08 583af6d199035baa66dd99bf7cbc9014e5ad0ff3
commit | author | age
92083b 1 module.exports = {
SE 2     "env": {
3         "browser": true
4     },
5     "globals": {
6         "require": true,
7         "module": true
8     },
9     // Enables rules that report common problems,
10     // see http://eslint.org/docs/rules/ for list
11     "extends": "eslint:recommended",
12     "rules": {
13         // Enforce the use of variables within the scope they are defined
14         "block-scoped-var": 2,
15         // Enforce camelcase naming convention
16         "camelcase": 2,
17         // Enforce consistent spacing before and after commas
18         "comma-spacing": 2,
19         // Enforce at least one newline at the end of files
20         "eol-last": 2,
21         // Require the use of === and !==
22         "eqeqeq": [2, "smart"],
23         // Enforce consistent spacing before and after keywords
24         "keyword-spacing": [2, { "before": true, "after": true }],
25         // Disallow multiple empty lines
26         "no-multiple-empty-lines": [2, { "max": 1, "maxEOF": 1, "maxBOF": 0 }],
27         // Enforce the consistent use of the radix argument when using parseInt()
28         "radix": 2,
29         // Require or disallow semicolons instead of AS
30         "semi": 2,
31         // Enforce consistent spacing before and after semicolons
32         "semi-spacing": 2,
33         // Enforce consistent spacing inside parentheses
34         // "space-in-parens": [2, "always"],
35         // Enforce the consistent use of either backticks, double, or single quotes
36         "quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }]
37     }
38 };