Skip to content

Commit 31eb766

Browse files
committed
switch to Biome
1 parent 1fba8ef commit 31eb766

File tree

5 files changed

+293
-44
lines changed

5 files changed

+293
-44
lines changed

.prettierignore

Lines changed: 0 additions & 14 deletions
This file was deleted.

.prettierrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

biome.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"defaultBranch": "master",
7+
"useIgnoreFile": true
8+
},
9+
"linter": {
10+
"enabled": false
11+
},
12+
"organizeImports": {
13+
"enabled": false
14+
},
15+
"formatter": {
16+
"enabled": true,
17+
"formatWithErrors": false,
18+
"indentStyle": "space",
19+
"indentWidth": 2,
20+
"lineEnding": "lf",
21+
"lineWidth": 80,
22+
"attributePosition": "auto",
23+
"ignore": [
24+
"_build/**",
25+
"_opam/**",
26+
"jscomp/build_tests/**/lib/**",
27+
"jscomp/build_tests/**/*.bs.js",
28+
"jscomp/build_tests/**/*.res.js",
29+
"lib/**",
30+
"ninja/**",
31+
"package.json",
32+
"playground/**",
33+
"rewatch/target/**"
34+
]
35+
},
36+
"javascript": {
37+
"formatter": {
38+
"jsxQuoteStyle": "double",
39+
"quoteProperties": "asNeeded",
40+
"trailingCommas": "all",
41+
"semicolons": "always",
42+
"arrowParentheses": "asNeeded",
43+
"bracketSpacing": true,
44+
"bracketSameLine": false,
45+
"quoteStyle": "double",
46+
"attributePosition": "auto"
47+
}
48+
}
49+
}

package-lock.json

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

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "rescript",
33
"version": "12.0.0-alpha.1",
44
"devDependencies": {
5+
"@biomejs/biome": "1.8.3",
56
"mocha": "10.1.0",
6-
"nyc": "15.0.0",
7-
"prettier": "2.7.1"
7+
"nyc": "15.0.0"
88
},
99
"engines": {
1010
"node": ">=18"
@@ -20,8 +20,10 @@
2020
"test": "node scripts/ciTest.js -all",
2121
"test-bsb": "node scripts/ciTest.js -bsb",
2222
"test-ocaml": "node scripts/ciTest.js -ounit",
23-
"format": "prettier --write .",
24-
"checkFormat": "prettier --check .",
23+
"format": "biome format --changed --write .",
24+
"format:all": "biome format --write .",
25+
"checkFormat": "biome format --changed .",
26+
"checkFormat:all": "biome format .",
2527
"coverage": "nyc --timeout=3000 --reporter=html mocha jscomp/test/*test.js && open ./coverage/index.html"
2628
},
2729
"description": "ReScript toolchain",

0 commit comments

Comments
 (0)