Simon Egersand
2018-02-11 d4bf16e299f8ea25477ed9c15a336bce36affe4b
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,
9f1b61 33         // Enforce consistent spacing before blocks
SE 34         "space-before-blocks": 2,
92083b 35         // Enforce consistent spacing inside parentheses
SE 36         // "space-in-parens": [2, "always"],
37         // Enforce the consistent use of either backticks, double, or single quotes
5015ac 38         "quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
SE 39         // Enforce using tabs for indentation
40         "indent": [2, "tab", { "SwitchCase": 1 }]
92083b 41     }
SE 42 };