Skip to content

Commit 9653f1d

Browse files
committed
Tweak configs
1 parent 649ced6 commit 9653f1d

File tree

5 files changed

+15
-61
lines changed

5 files changed

+15
-61
lines changed

.oxlintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock.json

biome.json

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,31 @@
11
{
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
33
"files": {
4-
"ignore": [
5-
"**/.env",
6-
"**/.github",
7-
"**/.nvm",
8-
"**/.tap",
9-
"**/.type-coverage",
10-
"**/coverage",
11-
"**/dist",
12-
"**/package.json",
13-
"**/package-lock.json"
14-
],
4+
"ignore": ["**/package.json", "**/package-lock.json"],
155
"maxSize": 5242880
166
},
177
"formatter": {
188
"enabled": true,
19-
"useEditorconfig": true,
9+
"attributePosition": "auto",
10+
"bracketSpacing": true,
2011
"formatWithErrors": false,
2112
"indentStyle": "space",
2213
"indentWidth": 2,
2314
"lineEnding": "lf",
2415
"lineWidth": 80,
25-
"attributePosition": "auto",
26-
"bracketSpacing": true
16+
"useEditorconfig": true
2717
},
2818
"javascript": {
2919
"formatter": {
30-
"jsxQuoteStyle": "double",
31-
"quoteProperties": "asNeeded",
32-
"trailingCommas": "none",
33-
"semicolons": "asNeeded",
3420
"arrowParentheses": "asNeeded",
21+
"attributePosition": "auto",
3522
"bracketSameLine": false,
23+
"bracketSpacing": true,
24+
"jsxQuoteStyle": "double",
25+
"quoteProperties": "asNeeded",
3626
"quoteStyle": "single",
37-
"attributePosition": "auto",
38-
"bracketSpacing": true
27+
"semicolons": "asNeeded",
28+
"trailingCommas": "none"
3929
}
4030
},
4131
"json": {

eslint.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ const { flatConfigs: origImportXFlatConfigs } = importXPlugin
2222

2323
const rootPath = __dirname
2424
const rootTsConfigPath = path.join(rootPath, TSCONFIG_JSON)
25+
const gitignorePath = path.join(rootPath, GIT_IGNORE)
2526

2627
const BIOME_JSON = 'biome.json'
2728
const biomeConfig = require(path.join(rootPath, BIOME_JSON))
2829

29-
const gitignorePath = path.join(rootPath, GIT_IGNORE)
30-
3130
const sharedPlugins = {
3231
'sort-destructure-keys': sortDestructureKeysPlugin,
3332
unicorn: unicornPlugin

package-lock.json

Lines changed: 0 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848
"clean:node_modules": "del-cli '**/node_modules'",
4949
"knip:dependencies": "knip --dependencies",
5050
"knip:exports": "knip --include exports,duplicates",
51-
"lint": "oxlint -c=./.oxlintrc.json --ignore-path=./.prettierignore --tsconfig=./tsconfig.json .",
52-
"lint-staged": "lint-staged",
51+
"lint": "oxlint -c=./.oxlintrc.json --ignore-path=./.oxlintignore --tsconfig=./tsconfig.json .",
5352
"lint:fix": "npm run lint -- --fix && npm run lint:fix:fast",
5453
"lint:fix:fast": "biome format --write",
54+
"lint-staged": "lint-staged",
5555
"precommit": "lint-staged",
5656
"prepare": "husky && custompatch",
5757
"test": "run-s check build:* test:* test:coverage:*",
@@ -110,8 +110,6 @@
110110
"@babel/preset-typescript": "^7.26.0",
111111
"@babel/runtime": "^7.26.7",
112112
"@biomejs/biome": "^1.9.4",
113-
"@biomejs/js-api": "^0.7.1",
114-
"@biomejs/wasm-nodejs": "^1.9.4",
115113
"@eslint/compat": "^1.2.6",
116114
"@eslint/js": "^9.19.0",
117115
"@rollup/plugin-commonjs": "^28.0.2",
@@ -154,7 +152,6 @@
154152
"nock": "^14.0.0",
155153
"npm-run-all2": "^7.0.2",
156154
"oxlint": "0.15.9",
157-
"prettier": "3.4.2",
158155
"read-package-up": "^11.0.0",
159156
"rollup": "4.34.3",
160157
"rollup-plugin-ts": "^3.4.5",
@@ -225,7 +222,7 @@
225222
"translations.json"
226223
],
227224
"lint-staged": {
228-
"*.{cjs,js,md,mjs,ts}": [
225+
"*.{cjs,js,json,md,mjs,ts}": [
229226
"npm run lint -- --fix",
230227
"npm run lint:fix:fast -- --no-errors-on-unmatched --files-ignore-unknown=true --colors=off"
231228
]

0 commit comments

Comments
 (0)