Skip to content

Commit

Permalink
[biome.json] Move Biome file list to config.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Nov 8, 2024
1 parent 6299e06 commit 37ad7d9
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 36 deletions.
8 changes: 2 additions & 6 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"recommendations": [
"biomejs.biome"
],
"unwantedRecommendations": [
"ms-vscode-remote.remote-containers"
]
"recommendations": ["biomejs.biome"],
"unwantedRecommendations": ["ms-vscode-remote.remote-containers"]
}
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -199,18 +199,18 @@ test-dist-bin-npm-exec: build-bin
time ${NPM} exec scramble -- 222
.PHONY: format
format:
${BIOME} check --apply ./script ./src
${BIOME} check --write
.PHONY: setup
setup:
${BUN} install --no-save # TODO: was `npm ci`
.PHONY: quick-setup
quick-setup: | node_modules
.PHONY: lint
lint:
${BIOME} check ./script ./src
${BIOME} check
.PHONY: lint-ci
lint-ci:
${BIOME} ci ./script ./src
${BIOME} ci
.PHONY: prepack
prepack: clean build test-dist-lib-node-import test-dist-lib-node-scramble test-dist-lib-plain-esbuild-compat
.PHONY: prepublishOnly
Expand Down
35 changes: 16 additions & 19 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
{
"files": {
"ignore": [
"./.temp",
"./dist",
"./package.json",
"./*/index.d.ts",
"./src/cubing/vendor/mit/cs0x7f/**/*",
"./src/cubing/vendor/mpl/twsearch/*.js",
"./src/cubing/vendor/mpl/xyzzy/*.js",
"./src/sites/experiments.cubing.net/cubing.js/rust/wasm/*.js",
"./src/sites/experiments.cubing.net/cubing.js/rust/wasm/*.d.ts",
"./src/test/vendor/bun-types-workaround.d.ts"
]
},
"linter": {
"enabled": true,
"rules": {
Expand All @@ -24,28 +38,11 @@
"performance": {
"noDelete": "off"
}
},
"ignore": [
"./src/cubing/vendor/mit/cs0x7f/**/*",
"./src/cubing/vendor/mpl/twsearch/*.js",
"./src/cubing/vendor/mpl/xyzzy/*.js",
"./src/sites/experiments.cubing.net/cubing.js/rust/wasm/*.js",
"./src/sites/experiments.cubing.net/cubing.js/rust/wasm/*.d.ts",
"./src/test/vendor/bun-types-workaround.d.ts"
]
}
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"ignore": [
"./package.json",
"./src/cubing/vendor/mit/cs0x7f/**/*",
"./src/cubing/vendor/mpl/twsearch/*.js",
"./src/cubing/vendor/mpl/xyzzy/*.js",
"./src/sites/experiments.cubing.net/cubing.js/rust/wasm/*.js",
"./src/sites/experiments.cubing.net/cubing.js/rust/wasm/*.d.ts",
"./src/test/vendor/bun-types-workaround.d.ts"
]
"indentWidth": 2
},
"organizeImports": {
"enabled": false
Expand Down
3 changes: 2 additions & 1 deletion script/build/lib/build-lib-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ for (const packageName of packageNames) {
packageName,
TYPESCRIPT_DECLARATION_INDEX,
),
)};`,
)};
`,
"utf-8",
);
}
9 changes: 2 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,10 @@
"noFallthroughCasesInSwitch": true,
"paths": {
// Workaround for the `bin` build: https://github.com/cubing/cubing.js/issues/292
"cubing/*": [
"./src/cubing/*"
]
"cubing/*": ["./src/cubing/*"]
}
},
"include": [
"script",
"src"
],
"include": ["script", "src"],
"exclude": [
"script/test/dist" // Avoid indexing `dist`.
],
Expand Down

0 comments on commit 37ad7d9

Please sign in to comment.