eslint-config-silverwind 87.0.2 → 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 CHANGED
@@ -25,7 +25,7 @@ import etc from "eslint-plugin-etc";
25
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
26
  const nodeGlobals = ["__dirname", "__filename"];
27
27
  const restrictedWorkerGlobals = [...browserGlobals, ...nodeGlobals, "window"];
28
- const restrictedGlobals = [...restrictedWorkerGlobals, ...nodeGlobals, "self"];
28
+ const restrictedGlobals = [...browserGlobals, ...nodeGlobals, "self"];
29
29
  const eslintrc = {
30
30
  "root": true,
31
31
  "reportUnusedDisableDirectives": true,
@@ -37,6 +37,7 @@ const eslintrc = {
37
37
  "eslint-plugin-no-use-extend-native",
38
38
  "eslint-plugin-regexp",
39
39
  "eslint-plugin-sonarjs",
40
+ "eslint-plugin-storybook",
40
41
  "eslint-plugin-unicorn",
41
42
  "eslint-plugin-vitest",
42
43
  "eslint-plugin-vitest-globals"
@@ -157,6 +158,10 @@ const eslintrc = {
157
158
  "rules": {
158
159
  "playwright/expect-expect": [0]
159
160
  }
161
+ },
162
+ {
163
+ "files": ["**/*.stories.*"],
164
+ "extends": "plugin:storybook/recommended"
160
165
  }
161
166
  ],
162
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"
@@ -320,6 +321,12 @@
320
321
  0
321
322
  ]
322
323
  }
324
+ },
325
+ {
326
+ "files": [
327
+ "**/*.stories.*"
328
+ ],
329
+ "extends": "plugin:storybook/recommended"
323
330
  }
324
331
  ],
325
332
  "rules": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-silverwind",
3
- "version": "87.0.2",
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",