Skip to content

Commit 1c3e38a

Browse files
authored
Merge pull request #263 from cyntler/new-react-pdf
Migrate to Vitest and upgrade react-pdf to v9
2 parents 1954dc7 + d9d546c commit 1c3e38a

36 files changed

+9898
-18955
lines changed

.babelrc.json

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

.eslintrc.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
11
{
2-
"extends": ["react-app", "plugin:storybook/recommended"]
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended",
5+
"plugin:storybook/recommended",
6+
"plugin:react/recommended",
7+
"plugin:react-hooks/recommended"
8+
],
9+
"parser": "@typescript-eslint/parser",
10+
"plugins": ["@typescript-eslint"],
11+
"root": true,
12+
"settings": {
13+
"react": {
14+
"version": "detect"
15+
}
16+
},
17+
"rules": {
18+
"react/prop-types": "off",
19+
"react/display-name": "off",
20+
"react/react-in-jsx-scope": 0
21+
}
322
}

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ jobs:
1818
with:
1919
node-version: ${{ env.NVMRC }}
2020
- name: Install packages
21-
run: npm i --legacy-peer-deps
21+
run: npm i
22+
- name: Check formatter
23+
run: npm run prettier:check
24+
- name: Check linter
25+
run: npm run lint
2226
- name: Check tests
2327
run: npm run test
2428
- name: Check build

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ npm-debug.log*
2323
yarn-debug.log*
2424
yarn-error.log*
2525
.idea
26+
*storybook.log

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
/.github
12
/.vscode
23
/.storybook
3-
/.github
44
/demo
55
/public
66
/src

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
20.8.0

.storybook/main.js

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

.storybook/main.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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: [
6+
"@storybook/addon-links",
7+
"@storybook/addon-essentials",
8+
"@storybook/addon-interactions",
9+
],
10+
framework: {
11+
name: "@storybook/react-vite",
12+
options: {},
13+
},
14+
};
15+
export default config;

.storybook/preview.js

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

.storybook/preview.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { Preview } from "@storybook/react";
2+
3+
const preview: Preview = {
4+
parameters: {
5+
controls: {
6+
matchers: {
7+
color: /(background|color)$/i,
8+
date: /Date$/i,
9+
},
10+
},
11+
},
12+
};
13+
14+
export default preview;

0 commit comments

Comments
 (0)