eslint-config-silverwind 87.0.1 → 87.1.0
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/dist/index.js +9 -2
- package/dist/index.json +11 -3
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -22,8 +22,10 @@ import typescriptConfig from "eslint-config-silverwind-typescript";
|
|
|
22
22
|
import typescriptPlugin from "typescript-eslint";
|
|
23
23
|
import typescriptParser from "@typescript-eslint/parser";
|
|
24
24
|
import etc from "eslint-plugin-etc";
|
|
25
|
-
const
|
|
26
|
-
const
|
|
25
|
+
const browserGlobals = ["addEventListener", "blur", "close", "closed", "confirm", "defaultStatus", "defaultstatus", "error", "event", "external", "find", "focus", "frameElement", "frames", "history", "innerHeight", "innerWidth", "isFinite", "isNaN", "length", "locationbar", "menubar", "moveBy", "moveTo", "name", "onblur", "onerror", "onfocus", "onload", "onresize", "onunload", "open", "opener", "opera", "outerHeight", "outerWidth", "pageXOffset", "pageYOffset", "parent", "print", "removeEventListener", "resizeBy", "resizeTo", "screen", "screenLeft", "screenTop", "screenX", "screenY", "scroll", "scrollbars", "scrollBy", "scrollTo", "scrollX", "scrollY", "status", "statusbar", "stop", "toolbar", "top"];
|
|
26
|
+
const nodeGlobals = ["__dirname", "__filename"];
|
|
27
|
+
const restrictedWorkerGlobals = [...browserGlobals, ...nodeGlobals, "window"];
|
|
28
|
+
const restrictedGlobals = [...browserGlobals, ...nodeGlobals, "self"];
|
|
27
29
|
const eslintrc = {
|
|
28
30
|
"root": true,
|
|
29
31
|
"reportUnusedDisableDirectives": true,
|
|
@@ -35,6 +37,7 @@ const eslintrc = {
|
|
|
35
37
|
"eslint-plugin-no-use-extend-native",
|
|
36
38
|
"eslint-plugin-regexp",
|
|
37
39
|
"eslint-plugin-sonarjs",
|
|
40
|
+
"eslint-plugin-storybook",
|
|
38
41
|
"eslint-plugin-unicorn",
|
|
39
42
|
"eslint-plugin-vitest",
|
|
40
43
|
"eslint-plugin-vitest-globals"
|
|
@@ -155,6 +158,10 @@ const eslintrc = {
|
|
|
155
158
|
"rules": {
|
|
156
159
|
"playwright/expect-expect": [0]
|
|
157
160
|
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"files": ["**/*.stories.*"],
|
|
164
|
+
"extends": "plugin:storybook/recommended"
|
|
158
165
|
}
|
|
159
166
|
],
|
|
160
167
|
"rules": {
|
package/dist/index.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"eslint-plugin-no-use-extend-native",
|
|
10
10
|
"eslint-plugin-regexp",
|
|
11
11
|
"eslint-plugin-sonarjs",
|
|
12
|
+
"eslint-plugin-storybook",
|
|
12
13
|
"eslint-plugin-unicorn",
|
|
13
14
|
"eslint-plugin-vitest",
|
|
14
15
|
"eslint-plugin-vitest-globals"
|
|
@@ -115,6 +116,8 @@
|
|
|
115
116
|
"stop",
|
|
116
117
|
"toolbar",
|
|
117
118
|
"top",
|
|
119
|
+
"__dirname",
|
|
120
|
+
"__filename",
|
|
118
121
|
"window"
|
|
119
122
|
]
|
|
120
123
|
}
|
|
@@ -318,6 +321,12 @@
|
|
|
318
321
|
0
|
|
319
322
|
]
|
|
320
323
|
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"files": [
|
|
327
|
+
"**/*.stories.*"
|
|
328
|
+
],
|
|
329
|
+
"extends": "plugin:storybook/recommended"
|
|
321
330
|
}
|
|
322
331
|
],
|
|
323
332
|
"rules": {
|
|
@@ -1231,10 +1240,9 @@
|
|
|
1231
1240
|
"stop",
|
|
1232
1241
|
"toolbar",
|
|
1233
1242
|
"top",
|
|
1234
|
-
"window",
|
|
1235
|
-
"self",
|
|
1236
1243
|
"__dirname",
|
|
1237
|
-
"__filename"
|
|
1244
|
+
"__filename",
|
|
1245
|
+
"self"
|
|
1238
1246
|
],
|
|
1239
1247
|
"no-restricted-imports": [
|
|
1240
1248
|
2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-silverwind",
|
|
3
|
-
"version": "87.0
|
|
3
|
+
"version": "87.1.0",
|
|
4
4
|
"description": "Exhaustive ESLint configuration",
|
|
5
5
|
"author": "silverwind <me@silverwind.io>",
|
|
6
6
|
"repository": "silverwind/eslint-config-silverwind",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"eslint-plugin-react-refresh": "0.4.7",
|
|
35
35
|
"eslint-plugin-regexp": "2.6.0",
|
|
36
36
|
"eslint-plugin-sonarjs": "1.0.3",
|
|
37
|
+
"eslint-plugin-storybook": "0.8.0",
|
|
37
38
|
"eslint-plugin-unicorn": "53.0.0",
|
|
38
39
|
"eslint-plugin-validate-jsx-nesting": "0.1.1",
|
|
39
40
|
"eslint-plugin-vitest": "0.4.1",
|