]> git.proxmox.com Git - pve-eslint.git/blob - src/examples/reduced-config.json
ship an example config and extend-rules sample files
[pve-eslint.git] / src / examples / reduced-config.json
1 {
2 "parserOptions": {
3 "ecmaVersion": 2017,
4 "ecmaFeatures": {
5 "impliedStrict": true
6 }
7 },
8 "env": {
9 "browser": true,
10 "node": true,
11 "es2017": true
12 },
13 "globals": {
14 "Ext": "writable",
15 "FormData": "writable",
16 "PBS": "writable",
17 "PMG": "writable",
18 "PVE": "writable",
19 "PVE_vnc_console_event": "writable",
20 "Proxmox": "writable",
21 "console": "writable",
22 "eslint": "writable",
23 "gettext": "writable"
24 },
25 "rules": {
26 "no-redeclare": "error",
27 "no-self-assign": "error",
28 "no-shadow-restricted-names": "error",
29 "no-undef": "error",
30 "no-unreachable": "error",
31 "no-unused-vars": [
32 "error",
33 {
34 "vars": "all",
35 "args": "none",
36 "varsIgnorePattern": "^(me|_.*)$"
37 }
38 ],
39 "block-scoped-var": "error",
40 "dot-notation": "error",
41 "eqeqeq": "error",
42 "no-eval": "error",
43 "no-multi-spaces": "error",
44 "no-self-compare": "error",
45 "no-shadow": "error",
46 "array-bracket-spacing": [
47 "warn",
48 "never"
49 ],
50 "brace-style": [
51 "warn",
52 "1tbs",
53 {
54 "allowSingleLine": true
55 }
56 ],
57 "comma-dangle": [
58 "warn",
59 "always-multiline"
60 ],
61 "comma-spacing": "warn",
62 "comma-style": "warn",
63 "computed-property-spacing": "warn",
64 "eol-last": "warn",
65 "func-call-spacing": "warn",
66 "func-name-matching": "warn",
67 "func-style": "warn",
68 "key-spacing": "warn",
69 "keyword-spacing": "warn",
70 "linebreak-style": "warn",
71 "no-trailing-spaces": "warn",
72 "no-unneeded-ternary": "warn",
73 "no-whitespace-before-property": "warn",
74 "object-curly-spacing": [
75 "warn",
76 "always"
77 ],
78 "padded-blocks": [
79 "warn",
80 "never"
81 ],
82 "quote-props": [
83 "warn",
84 "as-needed",
85 {
86 "keywords": true,
87 "unnecessary": false
88 }
89 ],
90 "semi": "warn",
91 "semi-spacing": "warn",
92 "space-before-blocks": "warn",
93 "space-before-function-paren": [
94 "warn",
95 "never"
96 ],
97 "space-in-parens": "warn",
98 "space-unary-ops": "warn",
99 "switch-colon-spacing": "warn",
100 "unicode-bom": "warn",
101 "arrow-body-style": "warn",
102 "arrow-spacing": "warn",
103 "prefer-numeric-literals": "warn",
104 "template-curly-spacing": "warn"
105 }
106 }