Skip to content

Commit

Permalink
feat: react-offscreen升级至rslib
Browse files Browse the repository at this point in the history
  • Loading branch information
IVLIU committed Oct 29, 2024
1 parent 89564c6 commit 0c3f8fe
Show file tree
Hide file tree
Showing 7 changed files with 2,229 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
node_modules
.cache
.parcel-cache
.rslib
dist
Empty file added .husky/pre-commit
Empty file.
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{ts,tsx}": ["eslint --fix", "prettier --write"]
}
13 changes: 13 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";


export default [
{files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]},
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
];
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@
"help": "rslib --help",
"build": "rslib build",
"size": "size-limit",
"analyze": "size-limit --why"
},
"peerDependencies": {
"react": ">=17",
"react-dom": ">=17"
"analyze": "size-limit --why",
"prepare": "husky"
},
"name": "@ivliu/react-offscreen",
"author": "ivliu",
Expand All @@ -43,13 +40,19 @@
"limit": "10 KB"
}
],
"peerDependencies": {
"react": ">=17",
"react-dom": ">=17"
},
"devDependencies": {
"@rsbuild/plugin-react": "^1.0.5",
"@rslib/core": "^0.0.15",
"@size-limit/preset-small-lib": "^8.2.4",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"husky": "^8.0.3",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"prettier": "3.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"size-limit": "^8.2.4",
Expand Down
Loading

0 comments on commit 0c3f8fe

Please sign in to comment.