Skip to content

Commit 0db2b37

Browse files
committedNov 27, 2024
Remove prettier and eslint, move to biome
1 parent f125d43 commit 0db2b37

9 files changed

+2430
-3861
lines changed
 

‎.eslintrc.cjs

-13
This file was deleted.

‎biome.jsonc

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"files": {
4+
"ignore": ["node_modules", "dist", "coverage"]
5+
},
6+
"vcs": {
7+
"enabled": true,
8+
"clientKind": "git",
9+
"defaultBranch": "main"
10+
},
11+
"organizeImports": {
12+
"enabled": true
13+
},
14+
"formatter": {
15+
"enabled": true,
16+
"indentStyle": "tab",
17+
"lineWidth": 120
18+
},
19+
"linter": {
20+
"enabled": true,
21+
"rules": {
22+
"recommended": true
23+
}
24+
},
25+
"overrides": [
26+
{
27+
"include": ["**/*.ts"],
28+
"linter": {
29+
"rules": {
30+
"complexity": {
31+
"useLiteralKeys": "off"
32+
}
33+
}
34+
}
35+
}
36+
]
37+
}

‎lefthook.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pre-commit:
2+
commands:
3+
check:
4+
glob: "*.{mjs,ts,json,jsonc,yml}"
5+
run: pnpm check

‎package.json

+33-55
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,35 @@
11
{
2-
"name": "astro-compressor",
3-
"version": "0.4.1",
4-
"description": "A gzip and brotli compressor for Astro",
5-
"type": "module",
6-
"main": "./dist/index.js",
7-
"types": "./dist/index.d.ts",
8-
"repository": {
9-
"type": "git",
10-
"url": "git+ssh://git@github.com/sondr3/astro-compressor.git"
11-
},
12-
"author": "Sondre Nilsen <sondre@eons.io> (https://www.eons.io)",
13-
"license": "MIT",
14-
"bugs": {
15-
"url": "https://github.com/sondr3/astro-compressor/issues"
16-
},
17-
"homepage": "https://github.com/sondr3/astro-compressor#readme",
18-
"prettier": "@sondr3/prettier",
19-
"keywords": [
20-
"astro",
21-
"astro-integration",
22-
"astro-component",
23-
"performance"
24-
],
25-
"files": [
26-
"dist/**",
27-
"CHANGELOG.md",
28-
"README.md"
29-
],
30-
"scripts": {
31-
"dev": "tsc --watch --incremental",
32-
"build": "rm -rf dist && tsc",
33-
"lint": "eslint --cache src",
34-
"lint:fix": "eslint --cache --fix src",
35-
"format": "prettier --check src",
36-
"format:fix": "prettier --cache --write src"
37-
},
38-
"devDependencies": {
39-
"@sondr3/eslint-config": "0.7.1",
40-
"@sondr3/prettier": "0.6.0",
41-
"@sondr3/tsconfig": "0.8.0",
42-
"@types/node": "18.15.3",
43-
"@typescript-eslint/eslint-plugin": "5.55.0",
44-
"@typescript-eslint/parser": "5.55.0",
45-
"astro": "2.1.3",
46-
"eslint": "8.36.0",
47-
"eslint-config-prettier": "8.7.0",
48-
"eslint-plugin-import": "2.27.5",
49-
"eslint-plugin-node": "11.1.0",
50-
"eslint-plugin-prettier": "4.2.1",
51-
"eslint-plugin-simple-import-sort": "10.0.0",
52-
"eslint-plugin-tsdoc": "0.2.17",
53-
"prettier": "2.8.5",
54-
"prettier-eslint": "15.0.1",
55-
"typescript": "4.9.5"
56-
}
2+
"name": "astro-compressor",
3+
"version": "0.4.1",
4+
"description": "A gzip and brotli compressor for Astro",
5+
"type": "module",
6+
"main": "./dist/index.js",
7+
"types": "./dist/index.d.ts",
8+
"repository": {
9+
"type": "git",
10+
"url": "git+ssh://git@github.com/sondr3/astro-compressor.git"
11+
},
12+
"author": "Sondre Nilsen <sondre@eons.io> (https://www.eons.io)",
13+
"license": "MIT",
14+
"bugs": {
15+
"url": "https://github.com/sondr3/astro-compressor/issues"
16+
},
17+
"homepage": "https://github.com/sondr3/astro-compressor#readme",
18+
"keywords": ["astro", "astro-integration", "astro-component", "performance"],
19+
"files": ["dist/**", "CHANGELOG.md", "README.md"],
20+
"scripts": {
21+
"dev": "tsc --watch --incremental",
22+
"build": "rm -rf dist && tsc",
23+
"prepare": "lefthook install",
24+
"check": "biome check",
25+
"fix": "biome check --write"
26+
},
27+
"devDependencies": {
28+
"@biomejs/biome": "1.9.4",
29+
"@sondr3/tsconfig": "0.8.0",
30+
"@types/node": "18.15.3",
31+
"astro": "2.1.3",
32+
"lefthook": "1.8.4",
33+
"typescript": "4.9.5"
34+
}
5735
}

0 commit comments

Comments
 (0)