@21torr/janus 1.0.11 → 1.0.12

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ 1.0.12
2
+ ======
3
+
4
+ * (improvement) Use flat config structure for ESLint Storybook config.
5
+
6
+
1
7
  1.0.11
2
8
  ======
3
9
 
@@ -1,27 +1,10 @@
1
1
  import base from './base.mjs';
2
2
  import nextPlugin from "@next/eslint-plugin-next";
3
- import { FlatCompat } from '@eslint/eslintrc'
4
- import * as storybookPlugin from "eslint-plugin-storybook";
5
-
6
- const compat = new FlatCompat({
7
- baseDirectory: import.meta.dirname,
8
- });
3
+ import storybook from "eslint-plugin-storybook";
9
4
 
10
5
 
11
6
  export default [
12
- ...compat.config({
13
- extends: [
14
- 'plugin:storybook/recommended',
15
- ],
16
- // .eslintignore is not supported with flat config, make sure to ignore also other build and test folders
17
- ignorePatterns: ['!.storybook', 'storybook-static'],
18
- }),
19
- {
20
- name: "Storybook",
21
- plugins: {
22
- "eslint-plugin-storybook": storybookPlugin,
23
- },
24
- },
7
+ ...storybook.configs["flat/recommended"],
25
8
  {
26
9
  name: "Next.js",
27
10
  plugins: {
package/package.json CHANGED
@@ -53,5 +53,5 @@
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  },
56
- "version": "1.0.11"
56
+ "version": "1.0.12"
57
57
  }