-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: experimental support for Biome linter
- Loading branch information
1 parent
1ecd1c9
commit a0ef5a1
Showing
10 changed files
with
222 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | ||
"extends": ["./cfg/biome.jsonc"] | ||
} |
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,77 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | ||
"files": { | ||
"ignore": ["**/__exclude", "*.compact.json"] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": false, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 100, | ||
"attributePosition": "auto" | ||
}, | ||
"organizeImports": { "enabled": true }, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"performance": { | ||
"noDelete": "off" // todo | ||
}, | ||
"correctness": { | ||
// noUnusedImports + noUnusedVariables can replace eslint-plugin-unused-vars! | ||
"noUnusedImports": "error", | ||
"noUnusedVariables": "error", | ||
"useArrayLiterals": "error" | ||
}, | ||
"style": { | ||
"useShorthandFunctionType": "error", | ||
"useShorthandAssign": "error", | ||
"useForOf": "error", | ||
"useConsistentArrayType": "error", | ||
"useShorthandArrayType": "error", | ||
"noDefaultExport": "error", | ||
"noCommaOperator": "error", | ||
"noArguments": "error", | ||
"noNonNullAssertion": "off", | ||
"useImportType": "off", | ||
"noParameterAssign": "off", | ||
"useTemplate": "off", | ||
"useNumberNamespace": "off", | ||
"noUnusedTemplateLiteral": "off" | ||
}, | ||
"suspicious": { | ||
"noExplicitAny": "off", | ||
"noAssignInExpressions": "off", | ||
"noAsyncPromiseExecutor": "off", | ||
"noPrototypeBuiltins": "off", | ||
"noGlobalIsNan": "off", // todo, | ||
"noThenProperty": "off", | ||
"noImportAssign": "off", | ||
"noEmptyInterface": "off" | ||
}, | ||
"complexity": { | ||
"noForEach": "off", | ||
"noUselessThisAlias": "off", | ||
"useLiteralKeys": "off", | ||
"noBannedTypes": "off" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"jsxQuoteStyle": "double", | ||
"quoteProperties": "asNeeded", | ||
"trailingCommas": "all", | ||
"semicolons": "asNeeded", | ||
"arrowParentheses": "asNeeded", | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"quoteStyle": "single", | ||
"attributePosition": "auto" | ||
} | ||
}, | ||
"overrides": [{ "include": ["tsconfig.json", "tsconfig.*.json"] }] | ||
} |
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,4 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | ||
"extends": ["node_modules/@naturalcycles/dev-lib/cfg/biome.jsonc"] | ||
} |
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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
export {} | ||
export type {} |
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
Oops, something went wrong.