Skip to content

Commit

Permalink
feat: switch to biome.js
Browse files Browse the repository at this point in the history
- Upgrade all dependencies
- Remove eslint
  • Loading branch information
thebuilder committed Jan 31, 2024
1 parent 8a22b9c commit 2b3642f
Show file tree
Hide file tree
Showing 20 changed files with 3,727 additions and 4,219 deletions.
224 changes: 0 additions & 224 deletions .eslintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ npm-debug.log
.project
.tmp
.eslintignore
biome.json
.flowconfig
.editorconfig
storybook/.storybook
Expand Down
38 changes: 38 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"files": {
"ignore": ["node_modules/**", "dist/**", "storybook-static/**"]
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noForEach": "off"
},
"a11y": {
"noSvgWithoutTitle": "off"
}
}
},
"overrides": [
{
"include": ["**/*.test.ts", "**/*.test.tsx"],
"linter": {
"rules": {
"style": {
"noUnusedTemplateLiteral": "off"
}
}
}
}
],
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
}
}
53 changes: 19 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
"build:bundle": "tsup src/index.tsx",
"build:legacy": "tsup src/index.tsx --format esm --legacy-output --no-clean --no-dts",
"build:utils": "tsc -p tsconfig.test.json",
"build:copy": "node scripts/build-copy.js",
"build:copy": "node scripts/build-copy.cjs",
"postbuild": "size-limit",
"dev": "run-p dev:*",
"dev:package": "tsup src/index.tsx --watch",
"dev:storybook": "pnpm --filter storybook dev",
"lint": "eslint . --ext js,ts,tsx",
"lint": "biome lint .",
"release": "np --contents dist",
"version": "pnpm build",
"storybook:build": "pnpm build:bundle && pnpm --filter storybook build",
Expand All @@ -58,14 +58,6 @@
"trailingComma": "all",
"proseWrap": "always"
},
"eslintIgnore": [
"*.snap",
"test-utils.js",
"dist/**",
"lib/**",
"example/**",
"webpack.config.js"
],
"release": {
"branches": [
"main",
Expand All @@ -87,15 +79,14 @@
]
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
"pre-commit": "npx lint-staged && vitest run"
},
"lint-staged": {
"*.{js,json,css,md,ts,tsx}": [
"prettier --write"
],
"src/**/*.{ts,tsx}": [
"eslint",
"vitest related --run"
"biome lint --apply"
]
},
"size-limit": [
Expand All @@ -122,31 +113,25 @@
"react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^8.2.4",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.2",
"@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"eslint": "^8.43.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"jsdom": "^22.1.0",
"lint-staged": "^13.2.2",
"@biomejs/biome": "^1.5.3",
"@size-limit/preset-small-lib": "^11.0.2",
"@testing-library/jest-dom": "^6.4.0",
"@testing-library/react": "^14.2.0",
"@types/jest": "^29.5.11",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.1",
"microbundle": "^0.15.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"prettier": "^3.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"simple-git-hooks": "^2.8.1",
"size-limit": "^8.2.4",
"tsup": "^7.0.0",
"typescript": "^5.1.3",
"vitest": "^0.32.2"
"simple-git-hooks": "^2.9.0",
"size-limit": "^11.0.2",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vitest": "^1.2.2"
},
"pnpm": {
"peerDependencyRules": {
Expand Down
Loading

0 comments on commit 2b3642f

Please sign in to comment.