Skip to content

Commit 8de859d

Browse files
authored
style: use biome & remove prettier and eslint (#122)
1 parent 562d01f commit 8de859d

14 files changed

+122372
-126402
lines changed

.eslintignore

-1
This file was deleted.

.eslintrc.cjs

-53
This file was deleted.

.huskyrc

-6
This file was deleted.

.lintstagedrc.json

-5
This file was deleted.

.prettierignore

-7
This file was deleted.

.prettierrc.cjs

-10
This file was deleted.

biome.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"formatter": {
7+
"enabled": true,
8+
"indentStyle": "space",
9+
"lineWidth": 144
10+
},
11+
"linter": {
12+
"enabled": true,
13+
"rules": {
14+
"recommended": true
15+
}
16+
},
17+
"files": {
18+
"ignoreUnknown": true,
19+
"ignore": ["dist"],
20+
"maxSize": 10485760
21+
},
22+
"javascript": {
23+
"formatter": {
24+
"arrowParentheses": "asNeeded"
25+
}
26+
}
27+
}

package.json

+11-13
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,10 @@
5757
"package.json"
5858
],
5959
"scripts": {
60+
"lint": "biome lint .",
61+
"format": "biome format --write .",
6062
"build": "tsup",
6163
"clean": "pnpm ts ./scripts/clean.ts",
62-
"format": "run-s format:code format:code:eslint",
63-
"format:code": "prettier \"**/*.{js,jsx,ts,tsx,json,yml,yaml,md,html}\" --write",
64-
"format:code:eslint": "eslint \"**/*.{ts,tsx}\" --fix",
6564
"lerna:version:up": "lerna version --yes",
6665
"release:github:registry": "pnpm publish --no-git-checks --registry https://npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}",
6766
"release:npm:registry": "pnpm publish --no-git-checks",
@@ -71,7 +70,6 @@
7170
"test:code:gen:function": "pnpm ts ./scripts/testCodeGenWithFunctional.ts",
7271
"test:code:gen:currying-function": "pnpm ts ./scripts/testCodeGenWithCurryingFunctional.ts",
7372
"test:depcruise": "depcruise --validate .dependency-cruiser.cjs src",
74-
"test:eslint": "eslint \"src/**/*.{ts,tsx}\"",
7573
"test:jest": "cross-env NODE_OPTIONS=--experimental-specifier-resolution=node jest -c ./jest.config.cjs --collect-coverage",
7674
"test:snapshot": "jest -c ./jest.snapshot.config.cjs",
7775
"ts": "node --no-warnings=ExperimentalWarning --experimental-specifier-resolution=node --loader ts-node/esm",
@@ -82,6 +80,14 @@
8280
"simple-git-hooks": {
8381
"pre-commit": "pnpm lint-staged"
8482
},
83+
"lint-staged": {
84+
"*.{js,jsx,json,yml,yaml,html,md,ts,tsx}": [
85+
"biome format --write"
86+
],
87+
"package.json": [
88+
"sort-package-json"
89+
]
90+
},
8591
"resolutions": {
8692
"kind-of": "6.0.3",
8793
"node-fetch": "2.6.1"
@@ -94,6 +100,7 @@
94100
"js-yaml": "4.1.0"
95101
},
96102
"devDependencies": {
103+
"@biomejs/biome": "^1.5.3",
97104
"@commitlint/cli": "18.6.0",
98105
"@commitlint/config-conventional": "18.6.0",
99106
"@swc/core": "^1.3.107",
@@ -104,18 +111,11 @@
104111
"@types/js-yaml": "4.0.9",
105112
"@types/node": "20.11.15",
106113
"@types/rimraf": "3.0.2",
107-
"@typescript-eslint/eslint-plugin": "6.20.0",
108-
"@typescript-eslint/parser": "6.20.0",
109114
"chokidar": "3.5.3",
110115
"conventional-changelog-angular-all": "1.7.0",
111116
"cpy": "11.0.0",
112117
"cross-env": "^7.0.3",
113118
"dependency-cruiser": "16.1.0",
114-
"eslint": "8.56.0",
115-
"eslint-config-prettier": "9.1.0",
116-
"eslint-plugin-import": "2.29.1",
117-
"eslint-plugin-simple-import-sort": "^10.0.0",
118-
"eslint-plugin-unused-imports": "^3.0.0",
119119
"execa": "8.0.1",
120120
"generate-changelog": "1.8.0",
121121
"import-sort-style-module": "6.0.0",
@@ -125,8 +125,6 @@
125125
"lint-staged": "15.2.1",
126126
"npm-run-all": "4.1.5",
127127
"openapi-schema-validator": "12.1.3",
128-
"prettier": "3.2.4",
129-
"prettier-plugin-import-sort": "0.0.7",
130128
"read-package-up": "^11.0.0",
131129
"rimraf": "5.0.5",
132130
"simple-git-hooks": "^2.9.0",

0 commit comments

Comments
 (0)