Skip to content

Commit

Permalink
feat: update formatter.indentStyle to space
Browse files Browse the repository at this point in the history
  • Loading branch information
keyding committed Jan 28, 2024
1 parent 2991120 commit d2086c8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 48 deletions.
84 changes: 43 additions & 41 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,45 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedVariables": "error"
},
"style": {
"noNonNullAssertion": "off",
"useShorthandArrayType": "error"
},
"suspicious": {
"noExplicitAny": "off"
}
}
},
"formatter": {
"lineWidth": 120
},
"organizeImports": {
"enabled": true
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingComma": "all",
"semicolons": "asNeeded"
}
},
"json": {
"parser": {
"allowComments": true
}
}
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedVariables": "error"
},
"style": {
"noNonNullAssertion": "off",
"useShorthandArrayType": "error"
},
"suspicious": {
"noExplicitAny": "off"
}
}
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 120
},
"organizeImports": {
"enabled": true
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingComma": "all",
"semicolons": "asNeeded"
}
},
"json": {
"parser": {
"allowComments": true
}
}
}
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,9 @@
"homepage": "https://github.com/heybrostudio/biome-config",
"repository": "heybrostudio/biome-config",
"bugs": "https://github.com/heybrostudio/biome-config/issues",
"keywords": [
"biome",
"biome-config"
],
"keywords": ["biome", "biome-config"],
"main": "biome.json",
"files": [
"biome.json"
],
"files": ["biome.json"],
"scripts": {
"lint": "biome lint .",
"lint:fix": "biome lint . --apply"
Expand Down

0 comments on commit d2086c8

Please sign in to comment.