Change from pnpm to npm, add ./link.sh shortcut for npm style package linking
[html-minifier.git] / .eslintrc.json
1 {
2   "env": {
3     "node": true
4   },
5   "extends": "eslint:recommended",
6   "rules": {
7     "array-bracket-spacing": "error",
8     "array-callback-return": "error",
9     "block-scoped-var": "error",
10     "block-spacing": "error",
11     "brace-style": [
12       "error",
13       "stroustrup",
14       {
15         "allowSingleLine": true
16       }
17     ],
18     "comma-spacing": "error",
19     "comma-style": [
20       "error",
21       "last"
22     ],
23     "computed-property-spacing": "error",
24     "curly": "error",
25     "dot-location": [
26       "error",
27       "property"
28     ],
29     "dot-notation": "error",
30     "eol-last": "error",
31     "eqeqeq": "error",
32     "func-style": [
33       "error",
34       "declaration"
35     ],
36     "indent": [
37       "error",
38       2,
39       {
40         "SwitchCase": 1,
41         "VariableDeclarator": 2
42       }
43     ],
44     "key-spacing": [
45       "error",
46       {
47         "beforeColon": false,
48         "afterColon": true,
49         "mode": "minimum"
50       }
51     ],
52     "keyword-spacing": "error",
53     "linebreak-style": "error",
54     "new-parens": "error",
55     "no-array-constructor": "error",
56     "no-caller": "error",
57     "no-console": "off",
58     "no-else-return": "error",
59     "no-eq-null": "error",
60     "no-eval": "error",
61     "no-extend-native": "error",
62     "no-extra-bind": "error",
63     "no-extra-label": "error",
64     "no-extra-parens": "error",
65     "no-floating-decimal": "error",
66     "no-implied-eval": "error",
67     "no-iterator": "error",
68     "no-lone-blocks": "error",
69     "no-lonely-if": "error",
70     "no-multiple-empty-lines": "error",
71     "no-multi-spaces": "error",
72     "no-multi-str": "error",
73     "no-native-reassign": "error",
74     "no-negated-condition": "error",
75     "no-new-wrappers": "error",
76     "no-new-object": "error",
77     "no-octal-escape": "error",
78     "no-path-concat": "error",
79     "no-process-env": "error",
80     "no-proto": "error",
81     "no-return-assign": "error",
82     "no-script-url": "error",
83     "no-self-compare": "error",
84     "no-sequences": "error",
85     "no-shadow-restricted-names": "error",
86     "no-spaced-func": "error",
87     "no-throw-literal": "error",
88     "no-trailing-spaces": "error",
89     "no-undef-init": "error",
90     "no-undefined": "error",
91     "no-unmodified-loop-condition": "error",
92     "no-unneeded-ternary": "error",
93     "no-unused-expressions": "error",
94     "no-use-before-define": [
95       "error",
96       "nofunc"
97     ],
98     "no-useless-call": "error",
99     "no-useless-concat": "error",
100     "no-useless-escape": "error",
101     "no-void": "error",
102     "no-whitespace-before-property": "error",
103     "no-with": "error",
104     "object-curly-spacing": [
105       "error",
106       "always"
107     ],
108     "operator-assignment": [
109       "error",
110       "always"
111     ],
112     "operator-linebreak": [
113       "error",
114       "after"
115     ],
116     "quote-props": [
117       "error",
118       "as-needed"
119     ],
120     "quotes": [
121       "error",
122       "single"
123     ],
124     "semi": "error",
125     "semi-spacing": "error",
126     "space-before-blocks": "error",
127     "space-before-function-paren": [
128       "error",
129       "never"
130     ],
131     "space-in-parens": "error",
132     "space-infix-ops": "error",
133     "space-unary-ops": "error",
134     "spaced-comment": [
135       "error",
136       "always",
137       {
138         "markers": [
139           "!"
140         ]
141       }
142     ],
143     "strict": "error",
144     "wrap-iife": [
145       "error",
146       "inside"
147     ],
148     "yoda": "error"
149   }
150 }