8000 feat: upgrade tooling · alampros/react-confetti@9c84a99 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c84a99

Browse files
committed
feat: upgrade tooling
This is a major tooling upgrade that might net some unknown downstream changes. Replace webpack with rollup. Replace eslint with Biome. Upgrade storybook to current (from stoneage).
1 parent e314b56 commit 9c84a99

39 files changed

+13308
-15125
lines changed

.DS_Store

6 KB
Binary file not shown.

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/publish.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,23 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
14-
- name: Use Node.js ${{ matrix.node-version }}
15-
uses: actions/setup-node@v3
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup Biome
16+
uses: biomejs/setup-biome@v2
17+
- name: Lint
18+
run: biome ci
19+
20+
- name: Use Node.js
21+
uses: actions/setup-node@v4
1622
with:
17-
node-version: 16
18-
cache: 'yarn'
19-
- run: yarn
20-
- run: yarn semantic-release
23+
node-version: 20
24+
- run: npm ci
25+
- run: npm run semantic-release
2126
env:
2227
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2328
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
24-
- run: yarn build-storybook
29+
- run: npm run build-storybook
2530
- name: Deploy 🚀
2631
uses: JamesIves/github-pages-deploy-action@v4.3.3
2732
with:

.storybook/addons.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

.storybook/config.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

.storybook/main.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import type { StorybookConfig } from "@storybook/react-vite";
2+
3+
const config: StorybookConfig = {
4+
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
5+
addons: ["@storybook/addon-essentials"],
6+
framework: {
7+
name: "@storybook/react-vite",
8+
options: {},
9+
},
10+
staticDirs: ["./public"],
11+
};
12+
export default config;

.storybook/webpack.config.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

babel.config.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

biome.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"files": {
7+
"ignore": [
8+
"node_modules",
9+
"dist",
10+
"build",
11+
".vscode",
12+
"package.json",
13+
"package-lock.json"
14+
]
15+
},
16+
"formatter": {
17+
"enabled": true,
18+
"indentStyle": "space",
19+
"indentWidth": 2,
20+
"formatWithErrors": true,
21+
"lineWidth": 100
22+
},
23+
"linter": {
10000 24+
"enabled": true,
25+
"rules": {
26+
"recommended": true,
27+
"style": {
28+
"useImportType": "off",
29+
"noNonNullAssertion": "off"
30+
},
31+
"suspicious": {
32+
"noExplicitAny": "off"
33+
},
34+
"performance": {
35+
"noDelete": "off",
36+
"noAccumulatingSpread": "off"
37+
},
38+
"complexity": {
39+
"noForEach": "off"
40+
},
41+
"correctness": {
42+
"noUnusedImports": "warn"
43+
}
44+
}
45+
},
46+
"javascript": {
47+
"formatter": {
48+
"enabled": true,
49+
"semicolons": "asNeeded",
50+
"quoteStyle": "single",
51+
"indentStyle": "space",
52+
"lineWidth": 100,
53+
"trailingCommas": "all"
54+
},
55+
"parser": {
56+
"unsafeParameterDecoratorsEnabled": true
57+
}
58+
},
59+
"json": {
60+
"formatter": {
61+
"enabled": true
62+
}
63+
}
64+
}

0 commit comments

Comments
 (0)
0