Skip to content

Commit f69cf43

Browse files
committed
build: switch to Biome
1 parent e9617b9 commit f69cf43

File tree

11 files changed

+152
-50
lines changed

11 files changed

+152
-50
lines changed

.nova/Configuration.json

+9-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
{
2-
"index.ignored_file_patterns" : [
3-
"node_modules",
4-
"public",
5-
"site\/_styles",
6-
".jj"
7-
],
8-
"todo.workspace-ignore-paths" : [
9-
"public"
10-
],
11-
"workspace.color" : 8,
12-
"workspace.name" : "Sympolymathesy",
13-
"workspace.preview_append_paths" : true,
14-
"workspace.preview_root" : "site",
15-
"workspace.preview_type" : "custom",
16-
"workspace.preview_url" : "http:\/\/localhost:8080\/"
2+
"index.ignored_file_patterns": ["node_modules", "public", "site/_styles", ".jj"],
3+
"prettier.format-on-save": "Disable",
4+
"todo.workspace-ignore-paths": ["public"],
5+
"workspace.color": 8,
6+
"workspace.name": "Sympolymathesy",
7+
"workspace.preview_append_paths": true,
8+
"workspace.preview_root": "site",
9+
"workspace.preview_type": "custom",
10+
"workspace.preview_url": "http://localhost:8080/"
1711
}

.nova/Tasks/Serve.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"actions" : {
3-
"clean" : {
4-
"enabled" : true,
5-
"script" : "yarn clean"
6-
},
7-
"run" : {
8-
"enabled" : true,
9-
"script" : "yarn serve"
10-
}
11-
}
2+
"actions": {
3+
"clean": {
4+
"enabled": true,
5+
"script": "yarn clean"
6+
},
7+
"run": {
8+
"enabled": true,
9+
"script": "yarn serve"
10+
}
11+
}
1212
}

.vscode/settings.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"files.associations": {
33
"*.html": "jinja-html"
44
},
5-
"editor.rulers": [
6-
90
7-
],
5+
"editor.rulers": [90],
86
"files.exclude": {
97
"**/.git": true,
108
"**/.svn": true,
@@ -15,4 +13,4 @@
1513
},
1614
"typescript.tsdk": "node_modules/typescript/lib",
1715
"sarif-viewer.connectToGithubCodeScanning": "off"
18-
}
16+
}
File renamed without changes.

biome.jsonc

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
4+
"files": { "ignoreUnknown": false, "ignore": [] },
5+
"formatter": {
6+
"enabled": true,
7+
"useEditorconfig": true,
8+
"formatWithErrors": false,
9+
"indentStyle": "space",
10+
"indentWidth": 3,
11+
"lineEnding": "lf",
12+
"lineWidth": 90,
13+
"attributePosition": "auto",
14+
"bracketSpacing": true,
15+
"ignore": ["**/*.md", "**/*.yaml"]
16+
},
17+
"organizeImports": { "enabled": true },
18+
"linter": { "enabled": false },
19+
"javascript": {
20+
"formatter": {
21+
"jsxQuoteStyle": "double",
22+
"quoteProperties": "asNeeded",
23+
"trailingCommas": "all",
24+
"semicolons": "always",
25+
"arrowParentheses": "always",
26+
"bracketSameLine": false,
27+
"quoteStyle": "single",
28+
"attributePosition": "auto",
29+
"bracketSpacing": true
30+
}
31+
}
32+
}

eleventy/config.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ import { preparseYaml } from './preparse';
3737

3838
type Not = <A extends unknown[]>(fn: (...args: A) => boolean) => (...args: A) => boolean;
3939
// prettier-ignore
40-
const not: Not = (fn) => (...args) => !fn(...args);
40+
const not: Not =
41+
(fn) =>
42+
(...args) =>
43+
!fn(...args);
4144

4245
type Filter = <T>(pred: (t: T) => boolean) => (values: T[]) => T[];
4346
const filter: Filter = (pred) => (values) => values.filter(pred);

package.json

+1-7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"packageManager": "pnpm@9.4.0",
1414
"devDependencies": {
1515
"@11ty/eleventy": "^2.0.1",
16+
"@biomejs/biome": "1.9.4",
1617
"@rollup/plugin-node-resolve": "^15.3.0",
1718
"@rollup/plugin-strip": "^3.0.4",
1819
"@rollup/plugin-terser": "^0.4.4",
@@ -43,7 +44,6 @@
4344
"markdown-it-implicit-figures": "^0.10.0",
4445
"markdown-it-mark": "^3.0.1",
4546
"markdown-it-sup": "^1.0.0",
46-
"prettier": "^2.8.8",
4747
"rollup": "^3.29.5",
4848
"sass": "^1.81.0",
4949
"striptags": "^3.2.0",
@@ -54,12 +54,6 @@
5454
"typeset": "^0.3.4",
5555
"uslug": "^1.0.4"
5656
},
57-
"prettier": {
58-
"singleQuote": true,
59-
"printWidth": 90,
60-
"trailingComma": "all",
61-
"tabWidth": 3
62-
},
6357
"scripts": {
6458
"build:styles": "gulp all",
6559
"build:site": "eleventy --quiet",

pnpm-lock.yaml

+91-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../base.tsconfig.json",
2+
"extends": "../base.tsconfig.jsonc",
33
"compilerOptions": {
44
"removeComments": true,
55
"lib": ["dom", "es2019"],

site/journal/Read the Manual/Read the Manual.11tydata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"permalink": "/journal/read-the-manual/{{tool | slug}}/index.html",
44
"tags": ["software development", "command line tools"],
55
"qualifiers": {
6-
"audience": "People interested in learning how the command lines tools on their computer work."
6+
"audience": "People interested in learning how the command lines tools on their computer work."
77
}
88
}

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./base.tsconfig.json",
2+
"extends": "./base.tsconfig.jsonc",
33
"compilerOptions": {
44
"noEmit": true /* Do not emit outputs. (BECAUSE WE'RE USING TS-NODE!) */
55
},

0 commit comments

Comments
 (0)