eslint-plugin-storybook 10.2.0-alpha.2 → 10.2.0-alpha.4
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/README.md +5 -6
- package/dist/index.js +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -62,13 +62,12 @@ This allows for this plugin to also lint your configuration files inside the .st
|
|
|
62
62
|
If you are using [flat config style](https://eslint.org/docs/latest/use/configure/configuration-files-new), add this to your configuration file:
|
|
63
63
|
|
|
64
64
|
```js
|
|
65
|
-
|
|
65
|
+
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
66
|
+
|
|
67
|
+
export default defineConfig([
|
|
68
|
+
globalIgnores(['!.storybook'], "Include Storybook Directory"),
|
|
66
69
|
// ...
|
|
67
|
-
|
|
68
|
-
// Inside your .eslintignore file
|
|
69
|
-
ignores: ['!.storybook'],
|
|
70
|
-
},
|
|
71
|
-
];
|
|
70
|
+
]);
|
|
72
71
|
```
|
|
73
72
|
|
|
74
73
|
## ESLint compatibility
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_5n8bphj3f1l from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_5n8bphj3f1l from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_5n8bphj3f1l from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_5n8bphj3f1l.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_5n8bphj3f1l.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_5n8bphj3f1l.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-storybook",
|
|
3
|
-
"version": "10.2.0-alpha.
|
|
3
|
+
"version": "10.2.0-alpha.4",
|
|
4
4
|
"description": "Storybook ESLint Plugin: Best practice rules for writing stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"eslint": ">=8",
|
|
65
|
-
"storybook": "^10.2.0-alpha.
|
|
65
|
+
"storybook": "^10.2.0-alpha.4"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|