Skip to content

Commit 521bc2f

Browse files
committed
fix: fix eslint config and add build step to release job [skip release]
1 parent b69a189 commit 521bc2f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/realease.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
node-version: "lts/*"
3333
- name: Install dependencies
3434
run: npm ci
35+
- name: Build
36+
run: npm run build
3537
- name: Release
3638
env:
3739
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

eslint.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@ import globals from "globals";
22
import pluginJs from "@eslint/js";
33
import tseslint from "typescript-eslint";
44
import pluginReact from "eslint-plugin-react";
5+
import pluginStorybook from "eslint-plugin-storybook";
56

67
/** @type {import('eslint').Linter.Config[]} */
78
export default [
89
{
910
files: ["src/**/*.{js,mjs,cjs,ts,jsx,tsx}"],
1011
},
11-
{ ignores: ["dist/"] },
12+
{ ignores: ["storybook-static", "!.storybook", "dist"] },
1213
{ languageOptions: { globals: globals.browser } },
1314
pluginJs.configs.recommended,
1415
...tseslint.configs.recommended,
1516
pluginReact.configs.flat.recommended,
1617
pluginReact.configs.flat["jsx-runtime"],
18+
...pluginStorybook.configs["flat/recommended"],
1719
{
1820
settings: {
1921
react: {

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,5 @@
6363
},
6464
"publishConfig": {
6565
"registry": "https://npm.pkg.github.com"
66-
},
67-
"eslintConfig": {
68-
"extends": [
69-
"plugin:storybook/recommended"
70-
]
7166
}
7267
}

0 commit comments

Comments
 (0)