Skip to content

Commit

Permalink
Merge pull request #8 from unvalley/use-biome
Browse files Browse the repository at this point in the history
chore: rome to biome
  • Loading branch information
mtshiba authored Jun 26, 2024
2 parents 1b579d5 + 3c22259 commit 9d52b88
Show file tree
Hide file tree
Showing 14 changed files with 300 additions and 228 deletions.
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["amodio.tsl-problem-matcher", "rome.rome"]
"recommendations": ["amodio.tsl-problem-matcher", "biomejs.biome"]
}
2 changes: 1 addition & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ src/**
.gitignore
vsc-extension-quickstart.md
webpack.config.js
rome.json
biome.json
15 changes: 15 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"linter": {
"enabled": true,
"rules": { "recommended": true },
"ignore": [".vscode"]
},
"formatter": { "enabled": true, "ignore": [".vscode"] },
"organizeImports": { "enabled": false }
}
86 changes: 41 additions & 45 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,44 @@
// guide: https://code.visualstudio.com/api/language-extensions/language-configuration-guide
{
"comments": {
"lineComment": "#",
"blockComment": ["#[", "]#"]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
{ "open": "{", "close": "}" },
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" },
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "#[", "close": "]#", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["'", "'"],
["\"", "\""],
["|", "|"]
],
"onEnterRules": [
{
// indent at `:`, `=`, `->`, `=>`, `.`, `\`
"beforeText": "^\\s*.*?(?::|=|->|=>|\\.|\\\\)\\s*$",
"action": { "indent": "indent" }
},
{
// e.g. `#[|]#`, `#[|` (`|` is the cursor)
"beforeText": {
"pattern": "^\\s*.*#\\[.*$"
},
// If this is present, it is indented. e.g. `#[|`
// "afterText": {
// "pattern": "^\\s*.*\\]#.*$"
// },
"action": {
"indent": "none"
}
}
]
"comments": {
"lineComment": "#",
"blockComment": ["#[", "]#"]
},
"brackets": [["{", "}"], ["[", "]"], ["(", ")"]],
"autoClosingPairs": [
{ "open": "{", "close": "}" },
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" },
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "#[", "close": "]#", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["'", "'"],
["\"", "\""],
["|", "|"]
],
"onEnterRules": [
{
// indent at `:`, `=`, `->`, `=>`, `.`, `\`
"beforeText": "^\\s*.*?(?::|=|->|=>|\\.|\\\\)\\s*$",
"action": { "indent": "indent" }
},
{
// e.g. `#[|]#`, `#[|` (`|` is the cursor)
"beforeText": {
"pattern": "^\\s*.*#\\[.*$"
},
// If this is present, it is indented. e.g. `#[|`
// "afterText": {
// "pattern": "^\\s*.*\\]#.*$"
// },
"action": {
"indent": "none"
}
}
]
}
Loading

0 comments on commit 9d52b88

Please sign in to comment.