@dvukovic/style-guide 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvukovic/style-guide",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "My own style guide",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"eslint-plugin-import-x": "3.1.0",
|
|
38
38
|
"eslint-plugin-jest": "28.6.0",
|
|
39
39
|
"eslint-plugin-jest-formatting": "3.1.0",
|
|
40
|
-
"eslint-plugin-mobx": "0.0.
|
|
41
|
-
"eslint-plugin-n": "17.
|
|
40
|
+
"eslint-plugin-mobx": "0.0.11",
|
|
41
|
+
"eslint-plugin-n": "17.10.1",
|
|
42
42
|
"eslint-plugin-promise": "7.0.0",
|
|
43
43
|
"eslint-plugin-react": "7.35.0",
|
|
44
44
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"eslint-plugin-sort-destructure-keys": "2.0.0",
|
|
48
48
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
|
49
49
|
"eslint-plugin-typescript-sort-keys": "3.2.0",
|
|
50
|
-
"eslint-plugin-unicorn": "
|
|
50
|
+
"eslint-plugin-unicorn": "55.0.0",
|
|
51
51
|
"eslint-plugin-unused-imports": "4.0.1",
|
|
52
52
|
"prettier-plugin-embed": "0.4.15",
|
|
53
53
|
"prettier-plugin-jsdoc": "1.3.0",
|
|
@@ -44,145 +44,75 @@ module.exports = {
|
|
|
44
44
|
"no-debugger": "error",
|
|
45
45
|
"no-delete-var": "error",
|
|
46
46
|
"no-div-regex": "error",
|
|
47
|
-
|
|
48
47
|
"no-dupe-else-if": "error",
|
|
49
|
-
|
|
50
48
|
"no-duplicate-case": "error",
|
|
51
|
-
|
|
52
49
|
"no-else-return": ["error", { allowElseIf: false }],
|
|
53
|
-
|
|
54
50
|
"no-empty": "error",
|
|
55
|
-
|
|
56
51
|
"no-empty": ["error", { allowEmptyCatch: false }],
|
|
57
|
-
|
|
58
52
|
"no-empty-character-class": "error",
|
|
59
|
-
|
|
60
53
|
"no-empty-function": ["error", { allow: ["functions"] }],
|
|
61
|
-
|
|
62
54
|
"no-empty-pattern": "error",
|
|
63
|
-
|
|
64
55
|
"no-empty-static-block": "error",
|
|
65
|
-
|
|
66
56
|
"no-eval": "error",
|
|
67
|
-
|
|
68
57
|
"no-ex-assign": "error",
|
|
69
|
-
|
|
70
58
|
"no-extend-native": "error",
|
|
71
|
-
|
|
72
59
|
"no-extra-bind": "error",
|
|
73
|
-
|
|
74
60
|
"no-extra-boolean-cast": "error",
|
|
75
|
-
|
|
76
61
|
"no-extra-label": "error",
|
|
77
|
-
|
|
78
62
|
"no-fallthrough": "error",
|
|
79
|
-
|
|
80
63
|
"no-global-assign": "error",
|
|
81
|
-
|
|
82
64
|
"no-implicit-coercion": "error",
|
|
83
|
-
|
|
84
65
|
"no-implied-eval": "error",
|
|
85
|
-
|
|
86
66
|
"no-inline-comments": "error",
|
|
87
|
-
|
|
88
67
|
"no-inner-declarations": "error",
|
|
89
|
-
|
|
90
68
|
"no-invalid-regexp": "error",
|
|
91
|
-
|
|
92
69
|
"no-invalid-this": "error",
|
|
93
|
-
|
|
94
70
|
"no-irregular-whitespace": "error",
|
|
95
|
-
|
|
96
71
|
"no-iterator": "error",
|
|
97
|
-
|
|
98
72
|
"no-label-var": "error",
|
|
99
|
-
|
|
100
73
|
"no-labels": "error",
|
|
101
|
-
|
|
102
74
|
"no-lone-blocks": "error",
|
|
103
|
-
|
|
104
75
|
"no-lonely-if": "error",
|
|
105
|
-
|
|
106
76
|
"no-loop-func": "error",
|
|
107
|
-
|
|
108
77
|
"no-loss-of-precision": "error",
|
|
109
|
-
|
|
110
78
|
"no-misleading-character-class": "error",
|
|
111
|
-
|
|
112
79
|
"no-multi-assign": "error",
|
|
113
|
-
|
|
114
80
|
"no-multi-str": "error",
|
|
115
|
-
|
|
116
81
|
"no-nested-ternary": "error",
|
|
117
|
-
|
|
118
82
|
"no-new": "error",
|
|
119
|
-
|
|
120
83
|
"no-new-func": "error",
|
|
121
|
-
|
|
122
84
|
"no-new-native-nonconstructor": "error",
|
|
123
|
-
|
|
124
85
|
"no-new-wrappers": "error",
|
|
125
|
-
|
|
126
86
|
"no-nonoctal-decimal-escape": "error",
|
|
127
|
-
|
|
128
87
|
"no-object-constructor": "error",
|
|
129
|
-
|
|
130
88
|
"no-octal": "error",
|
|
131
|
-
|
|
132
89
|
"no-octal-escape": "error",
|
|
133
|
-
|
|
134
90
|
"no-param-reassign": "error",
|
|
135
|
-
|
|
136
91
|
"no-plusplus": ["error", { allowForLoopAfterthoughts: true }],
|
|
137
|
-
|
|
138
92
|
"no-promise-executor-return": "error",
|
|
139
|
-
|
|
140
93
|
"no-proto": "error",
|
|
141
|
-
|
|
142
94
|
"no-prototype-builtins": "error",
|
|
143
|
-
|
|
144
95
|
"no-regex-spaces": "error",
|
|
145
|
-
|
|
146
96
|
"no-return-assign": "error",
|
|
147
|
-
|
|
148
97
|
"no-script-url": "error",
|
|
149
|
-
|
|
150
98
|
"no-self-assign": "error",
|
|
151
|
-
|
|
152
99
|
"no-self-compare": "error",
|
|
153
|
-
|
|
154
100
|
"no-sequences": "error",
|
|
155
|
-
|
|
156
101
|
"no-shadow": "error",
|
|
157
|
-
|
|
158
102
|
"no-shadow-restricted-names": "error",
|
|
159
|
-
|
|
160
103
|
"no-sparse-arrays": "error",
|
|
161
|
-
|
|
162
104
|
"no-template-curly-in-string": "error",
|
|
163
|
-
|
|
164
105
|
"no-throw-literal": "error",
|
|
165
|
-
|
|
166
106
|
"no-unexpected-multiline": "error",
|
|
167
|
-
|
|
168
107
|
"no-unmodified-loop-condition": "error",
|
|
169
|
-
|
|
170
108
|
"no-unneeded-ternary": "error",
|
|
171
|
-
|
|
172
109
|
"no-unreachable-loop": "error",
|
|
173
|
-
|
|
174
110
|
"no-unsafe-finally": "error",
|
|
175
|
-
|
|
176
111
|
"no-unsafe-optional-chaining": "error",
|
|
177
|
-
|
|
178
112
|
"no-unused-expressions": "error",
|
|
179
|
-
|
|
180
113
|
"no-unused-labels": "error",
|
|
181
|
-
|
|
182
114
|
"no-unused-private-class-members": "error",
|
|
183
|
-
|
|
184
115
|
"no-unused-vars": "error",
|
|
185
|
-
|
|
186
116
|
"no-use-before-define": "error",
|
|
187
117
|
// "no-useless-assignment": "error", NOTE: available in eslint 9
|
|
188
118
|
"no-useless-backreference": "error",
|
|
@@ -38,9 +38,8 @@ module.exports = {
|
|
|
38
38
|
"unicorn/no-for-loop": "error",
|
|
39
39
|
"unicorn/no-instanceof-array": "error",
|
|
40
40
|
"unicorn/no-invalid-fetch-options": "error",
|
|
41
|
-
|
|
42
41
|
"unicorn/no-invalid-remove-event-listener": "error",
|
|
43
|
-
|
|
42
|
+
"unicorn/no-length-as-slice-end": "error",
|
|
44
43
|
"unicorn/no-lonely-if": "error",
|
|
45
44
|
"unicorn/no-magic-array-flat-depth": "error",
|
|
46
45
|
"unicorn/no-negation-in-equality-check": "error",
|