]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - bin/.eslintrc.js
import terminus-font-4.48
[FreeBSD/FreeBSD.git] / bin / .eslintrc.js
1 module.exports = {
2     "env": {
3         "es6": true,
4         "node": true,
5         "browser": false
6     },
7     "extends": "eslint:recommended",
8     "parserOptions": {
9         "sourceType": "module"
10     },
11     "rules": {
12         "indent": [
13             "error",
14             "tab"
15         ],
16         "linebreak-style": [
17             "error",
18             "unix"
19         ],
20         "quotes": [
21             "warn",
22             "single"
23         ],
24         "semi": [
25             "error",
26             "always"
27         ],
28         "curly": [
29             "error",
30             "all"
31         ],
32         "brace-style": [
33             "error",
34             "1tbs"
35         ],
36         "no-empty" : "warn",
37         "no-unused-vars" : "warn",
38         "no-console": "warn",
39         "consistent-return": "error",
40         "class-methods-use-this": "warn",
41         "eqeqeq": [
42             "error",
43             "always", {
44                 "null": "ignore"
45             }
46         ],
47         "no-alert": "warn",
48         "no-caller": "error",
49         "no-eval": "error",
50         "no-extend-native": "warn",
51         "no-implicit-coercion": "error",
52         "no-implied-eval": "error",
53         "no-invalid-this": "error",
54         "no-loop-func": "error",
55         "no-new-func": "warn",
56         "no-new-wrappers": "error",
57         "no-proto": "error",
58         "no-return-assign": "warn",
59         "no-return-await": "warn",
60         "no-script-url": "error",
61         "no-self-compare": "error",
62         "no-sequences": "error",
63         "no-throw-literal": "error",
64         "no-unmodified-loop-condition": "warn",
65         "no-unused-expressions": "warn",
66         "no-useless-return": "warn",
67         "no-warning-comments": "warn",
68         "prefer-promise-reject-errors": "warn",
69         "no-label-var": "error",
70         "no-shadow": [
71             "warn", {
72                 "builtinGlobals": true,
73                 "hoist": "all"
74             }
75         ],
76         "no-shadow-restricted-names": "error",
77         "no-undefined": "error",
78         "no-use-before-define": "error",
79         "no-new-require": "error",
80         "no-path-concat": "error",
81         "camelcase": "error",
82         "comma-dangle": [
83             "error",
84             "never"
85         ],
86         "eol-last": [
87             "error",
88             "always"
89         ],
90         "func-call-spacing": "warn",
91         "lines-around-directive": [
92             "warn",
93             "always"
94         ],
95         "max-params": [
96             "warn", {
97                 "max": 7
98             }
99         ],
100         "max-statements-per-line": [
101             "warn", {
102                 "max": 1
103             }
104         ],
105         "new-cap": [
106             "error"
107         ],
108         "no-array-constructor": "warn",
109         "no-mixed-operators": [
110             "error", {
111                 "groups": [
112                     ["&", "|", "^", "~", "<<", ">>", ">>>"],
113                     ["==", "!=", "===", "!==", ">", ">=", "<", "<="],
114                     ["&&", "||"],
115                     ["in", "instanceof"]
116                 ],
117                 "allowSamePrecedence": false
118             }
119         ],
120         "no-trailing-spaces": "warn",
121         "no-unneeded-ternary": "warn",
122         "no-whitespace-before-property": "error",
123         "operator-linebreak": "warn",
124         "semi-spacing": "warn",
125         "no-confusing-arrow": [
126             "error", {
127                 "allowParens": true
128             }
129         ],
130         "no-duplicate-imports": "warn",
131         "prefer-rest-params": "warn",
132         "prefer-spread": "warn",
133         "no-unsafe-negation": "warn"
134     }
135 };