Skip to content

Commit 0ea879c

Browse files
Replace ESLint with Biome and reformat code (#60)
1 parent 2b347cb commit 0ea879c

File tree

9 files changed

+640
-526
lines changed

9 files changed

+640
-526
lines changed

.eslintignore

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

.eslintrc.js

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

biome.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"files": {
4+
"include": ["src/**/*.js", "docs/**"],
5+
"ignore": ["docs/images", "**/*.min.js", "src/icons", "src/materialize", "src/scripts/fontawesome.js"]
6+
},
7+
"formatter": {
8+
"enabled": true,
9+
"indentStyle": "tab",
10+
"lineWidth": 120
11+
},
12+
"linter": {
13+
"enabled": true
14+
},
15+
"organizeImports": {
16+
"enabled": true
17+
},
18+
"javascript": {
19+
"formatter": {
20+
"quoteStyle": "single"
21+
}
22+
}
23+
}

package.json

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
11
{
2-
"name": "scrum_helper_extension",
3-
"version": "1.0.0",
4-
"description": "This extension helps in writing Scrums in google groups, particularly related to FOSSASIA. It converts a link to a github PR or an Issue to display the PR or the Issue's name along with the link to it.",
5-
"devDependencies": {
6-
"eslint": "^4.7.2"
7-
},
8-
"repository": {
9-
"type": "git",
10-
"url": "git+https://github.com/fossasia/scrum_helper_extension.git"
11-
},
12-
"scripts": {
13-
"test": "eslint .",
14-
"lint": "eslint ."
15-
},
16-
"keywords": [
17-
"scrum",
18-
"google groups",
19-
"fossasia"
20-
],
21-
"author": "hkedia321",
22-
"license": "ISC",
23-
"bugs": {
24-
"url": "https://github.com/fossasia/scrum_helper_extension/issues"
25-
},
26-
"homepage": "https://github.com/fossasia/scrum_helper_extension",
27-
"dependencies": {
28-
"babel-eslint": "^7.2.3"
29-
}
2+
"name": "scrum_helper_extension",
3+
"version": "1.0.0",
4+
"description": "This extension helps in writing Scrums in google groups, particularly related to FOSSASIA. It converts a link to a github PR or an Issue to display the PR or the Issue's name along with the link to it.",
5+
"repository": {
6+
"type": "git",
7+
"url": "git+https://github.com/fossasia/scrum_helper_extension.git"
8+
},
9+
"scripts": {
10+
"format": "biome format --write",
11+
"check": "biome check .",
12+
"fix": "biome lint --write"
13+
},
14+
"keywords": ["scrum", "google groups", "fossasia"],
15+
"author": "hkedia321",
16+
"license": "ISC",
17+
"bugs": {
18+
"url": "https://github.com/fossasia/scrum_helper_extension/issues"
19+
},
20+
"homepage": "https://github.com/fossasia/scrum_helper_extension",
21+
"devDependencies": {
22+
"@biomejs/biome": "1.9.4"
23+
}
3024
}

src/index.css

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,52 @@
1-
body{
1+
body {
22
margin: 0;
33
padding: 0;
44
background-color: rgba(251, 251, 251, 0.6);
55
}
66

7-
*{
7+
* {
88
box-sizing: border-box;
99
}
10-
.datepicker{
10+
.datepicker {
1111
margin-bottom: 5px !important;
1212
}
13-
.container{
14-
}
15-
.tabs .tab a:hover, .tabs .tab a.active {
13+
.tabs .tab a:hover,
14+
.tabs .tab a.active {
1615
background-color: transparent;
1716
color: #3f51b5;
1817
}
1918
.tabs {
2019
background-color: transparent;
2120
}
2221
.tabs .tab a {
23-
color: #3F51B5;
22+
color: #3f51b5;
2423
}
2524
.tabs .indicator {
26-
background-color: #3F51B5;
25+
background-color: #3f51b5;
2726
}
28-
.switch label input[type=checkbox]:checked+.lever {
29-
background-color: #3F51B5;
27+
.switch label input[type="checkbox"]:checked + .lever {
28+
background-color: #3f51b5;
3029
}
31-
.switch label input[type=checkbox]:checked+.lever:after {
30+
.switch label input[type="checkbox"]:checked + .lever:after {
3231
background-color: #fcfcfc;
3332
left: 24px;
3433
}
35-
[type="checkbox"].filled-in:checked+label:after {
34+
[type="checkbox"].filled-in:checked + label:after {
3635
border: 2px solid #3f51b5;
3736
background-color: #3f51b5;
3837
}
39-
.btn:hover, .btn-large:hover {
38+
.btn:hover,
39+
.btn-large:hover {
4040
background-color: #3f51b5;
4141
}
4242
a {
43-
color: #3F51B5;
43+
color: #3f51b5;
4444
}
45-
.btn, .btn-large {
45+
.btn,
46+
.btn-large {
4647
background-color: #3f51b5;
4748
}
48-
li{
49+
li {
4950
list-style-type: disc !important;
5051
margin-left: 1rem;
51-
}
52+
}

0 commit comments

Comments
 (0)