Skip to content

Commit b245290

Browse files
committed
use biome instead of prettier
1 parent ada9ae1 commit b245290

File tree

5 files changed

+321
-395
lines changed

5 files changed

+321
-395
lines changed

.prettierrc.json

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

biome.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"linter": {
7+
"enabled": true,
8+
"rules": {
9+
"recommended": true
10+
}
11+
},
12+
"javascript": {
13+
"formatter": {
14+
"quoteStyle": "single",
15+
"semicolons": "asNeeded"
16+
}
17+
}
18+
}

index.js

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,38 @@
1-
"use strict";
2-
3-
const backgroundColor = "#282a36";
4-
const foregroundColor = "#f8f8f2";
5-
const borderColor = "#44475a";
6-
const cursorColor = "#f8f8f2";
1+
const backgroundColor = '#282a36'
2+
const foregroundColor = '#f8f8f2'
3+
const borderColor = '#44475a'
4+
const cursorColor = '#f8f8f2'
75
const colors = {
8-
black: "#000000",
9-
red: "#ff5555",
10-
green: "#50fa7b",
11-
yellow: "#f1fa8c",
12-
blue: "#bd93f9",
13-
magenta: "#ff79c6",
14-
cyan: "#8be9fd",
15-
white: "#bfbfbf",
16-
lightBlack: "#4d4d4d",
17-
lightRed: "#ff6e67",
18-
lightGreen: "#5af78e",
19-
lightYellow: "#f4f99d",
20-
lightBlue: "#caa9fa",
21-
lightMagenta: "#ff92d0",
22-
lightCyan: "#9aedfe",
23-
lightWhite: "#e6e6e6",
24-
};
6+
black: '#000000',
7+
red: '#ff5555',
8+
green: '#50fa7b',
9+
yellow: '#f1fa8c',
10+
blue: '#bd93f9',
11+
magenta: '#ff79c6',
12+
cyan: '#8be9fd',
13+
white: '#bfbfbf',
14+
lightBlack: '#4d4d4d',
15+
lightRed: '#ff6e67',
16+
lightGreen: '#5af78e',
17+
lightYellow: '#f4f99d',
18+
lightBlue: '#caa9fa',
19+
lightMagenta: '#ff92d0',
20+
lightCyan: '#9aedfe',
21+
lightWhite: '#e6e6e6',
22+
}
2523

2624
exports.decorateConfig = (config) => {
27-
return Object.assign({}, config, {
28-
backgroundColor,
29-
foregroundColor,
30-
borderColor,
31-
cursorColor,
32-
colors,
33-
termCSS: `
34-
${config.termCSS || ""}
25+
return Object.assign({}, config, {
26+
backgroundColor,
27+
foregroundColor,
28+
borderColor,
29+
cursorColor,
30+
colors,
31+
termCSS: `
32+
${config.termCSS || ''}
3533
`,
36-
css: `
37-
${config.css || ""}
34+
css: `
35+
${config.css || ''}
3836
.tabs_list .tab_tab.tab_active .tab_text {
3937
background: ${backgroundColor};
4038
}
@@ -43,5 +41,5 @@ exports.decorateConfig = (config) => {
4341
border-color: ${borderColor};
4442
}
4543
`,
46-
});
47-
};
44+
})
45+
}

package.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
{
2-
"name": "hyper-dracula",
3-
"version": "0.2.1",
4-
"main": "index.js",
5-
"homepage": "https://draculatheme.com/hyper",
6-
"description": "A dark theme for Hyper",
7-
"repository": {
8-
"type": "git",
9-
"url": "https://github.com/dracula/hyper.git"
10-
},
11-
"keywords": [
12-
"hyperterm",
13-
"hyper",
14-
"hyper.app",
15-
"hyper dracula",
16-
"hyper theme",
17-
"dracula-theme"
18-
],
19-
"author": "Dang Van Thanh <dangvanthanh@dangthanh.or>",
20-
"license": "MIT",
21-
"devDependencies": {
22-
"husky": "^8.0.3",
23-
"lint-staged": "^14.0.1",
24-
"prettier": "3.0.3"
25-
},
26-
"scripts": {
27-
"prepare": "husky install"
28-
},
29-
"lint-staged": {
30-
"**/*": "prettier --write --ignore-unknown"
31-
}
2+
"name": "hyper-dracula",
3+
"version": "0.2.1",
4+
"main": "index.js",
5+
"homepage": "https://draculatheme.com/hyper",
6+
"description": "A dark theme for Hyper",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/dracula/hyper.git"
10+
},
11+
"keywords": [
12+
"hyperterm",
13+
"hyper",
14+
"hyper.app",
15+
"hyper dracula",
16+
"hyper theme",
17+
"dracula-theme"
18+
],
19+
"author": "Dang Van Thanh <dangvanthanh@dangthanh.org>",
20+
"license": "MIT",
21+
"devDependencies": {
22+
"@biomejs/biome": "1.4.1",
23+
"husky": "^8.0.3",
24+
"lint-staged": "^15.2.0"
25+
},
26+
"scripts": {
27+
"prepare": "husky install"
28+
},
29+
"lint-staged": {
30+
"**/*": "pnpm dlx @biomejs/biome format ./index.js --write"
31+
}
3232
}

0 commit comments

Comments
 (0)