]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/static/.eslintrc.js
Add new lint to enforce whitespace after keywords
[rust.git] / src / librustdoc / html / static / .eslintrc.js
1 module.exports = {
2     "env": {
3         "browser": true,
4         "es6": true
5     },
6     "extends": "eslint:recommended",
7     "parserOptions": {
8         "ecmaVersion": 2015,
9         "sourceType": "module"
10     },
11     "rules": {
12         "linebreak-style": [
13             "error",
14             "unix"
15         ],
16         "semi": [
17             "error",
18             "always"
19         ],
20         "quotes": [
21             "error",
22             "double"
23         ],
24         "linebreak-style": [
25             "error",
26             "unix"
27         ],
28         "no-trailing-spaces": "error",
29         "no-var": ["error"],
30         "prefer-const": ["error"],
31         "prefer-arrow-callback": ["error"],
32         "brace-style": [
33             "error",
34             "1tbs",
35             { "allowSingleLine": false }
36         ],
37         "keyword-spacing": [
38             "error",
39             { "before": true, "after": true }
40         ],
41     }
42 };