@baseplate-dev/tools 0.2.4 → 0.2.5

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.
@@ -4,7 +4,7 @@
4
4
  * @typedef {import('./typescript.js').GenerateTypescriptEslintConfigOptions} GenerateTypescriptEslintConfigOptions
5
5
  */
6
6
 
7
- import storybookPlugin from 'eslint-plugin-storybook';
7
+ import storybook from 'eslint-plugin-storybook';
8
8
  import tsEslint from 'typescript-eslint';
9
9
 
10
10
  /** @type {GenerateTypescriptEslintConfigOptions} */
@@ -21,13 +21,11 @@ export const storybookTypescriptEslintOptions = {
21
21
 
22
22
  export const storybookEslintConfig = tsEslint.config(
23
23
  // Storybook
24
- {
25
- files: ['**/*.stories.{ts,tsx,js,jsx,mjs,cjs}'],
26
- extends: storybookPlugin.configs['flat/recommended'],
27
- },
24
+ // @ts-ignore -- TypeScript resolution bug where it expects a named export called default
25
+ storybook.configs['flat/recommended'],
28
26
 
29
27
  // Ignores
30
28
  {
31
- ignores: ['storybook-static'],
29
+ ignores: ['storybook-static', '!.storybook'],
32
30
  },
33
31
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baseplate-dev/tools",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Shared dev configurations for linting, formatting, and testing Baseplate projects",
5
5
  "keywords": [
6
6
  "development-tools",
@@ -61,7 +61,7 @@
61
61
  "eslint-plugin-perfectionist": "4.12.3",
62
62
  "eslint-plugin-react": "7.37.5",
63
63
  "eslint-plugin-react-hooks": "5.2.0",
64
- "eslint-plugin-storybook": "0.12.0",
64
+ "eslint-plugin-storybook": "9.0.16",
65
65
  "eslint-plugin-unicorn": "59.0.1",
66
66
  "eslint-plugin-unused-imports": "4.1.4",
67
67
  "prettier-plugin-packagejson": "2.5.11",