-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
biome
for JS formatting and linting.
Note that this only covers the `script` directory, as #112 (comment) will remove the old build script.
- Loading branch information
Showing
6 changed files
with
194 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/bootstrap | ||
- run: npm run build | ||
- run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"formatter": { | ||
"indentStyle": "space", | ||
"indentSize": 2 | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
} | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
"@babel/core": "^7.10.5", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/register": "^7.10.5", | ||
"@biomejs/biome": "^1.1.2", | ||
"bufferstreams": "^3.0.0", | ||
"del": "^5.1.0", | ||
"gulp": "^4.0.2", | ||
|
@@ -22,7 +23,9 @@ | |
"watch": "gulp watch", | ||
"dev": "npm run watch", | ||
"version": "npm run build", | ||
"postversion": "git push --follow-tags [email protected]:cubing/icons.git HEAD:main && npm publish" | ||
"postversion": "git push --follow-tags [email protected]:cubing/icons.git HEAD:main && npm publish", | ||
"lint": "npx @biomejs/biome check ./script", | ||
"format": "npx @biomejs/biome format --write ./script" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// This is a stub until https://github.com/cubing/icons/pull/112 lands. |