-
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.
migrate to biome, remove commander, refactor file structure
- Loading branch information
Showing
27 changed files
with
1,031 additions
and
869 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,10 @@ | ||
# Editor configuration, see https://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = tab | ||
tab_width = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
max_line_length = 80 |
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,4 +1 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run format:check | ||
npm run lint:check && npm run format:check |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | ||
"linter": { | ||
"rules": { | ||
"correctness": { | ||
"noUnusedImports": "error", | ||
"noUnusedVariables": "error", | ||
"noUnusedPrivateClassMembers": "error", | ||
"useArrayLiterals": "error" | ||
}, | ||
"performance": { | ||
"noBarrelFile": "error" | ||
}, | ||
"style": { | ||
"noDefaultExport": "error", | ||
"noNamespace": "error", | ||
"noNamespaceImport": "error", | ||
"noNegationElse": "error", | ||
"useBlockStatements": "error", | ||
"useCollapsedElseIf": "error", | ||
"useConsistentArrayType": { | ||
"level": "error", | ||
"options": { | ||
"syntax": "generic" | ||
} | ||
}, | ||
"useFilenamingConvention": { | ||
"level": "error", | ||
"options": { | ||
"requireAscii": true, | ||
"filenameCases": ["kebab-case"] | ||
} | ||
}, | ||
"useForOf": "error", | ||
"useFragmentSyntax": "error", | ||
"useNamingConvention": "error", | ||
"useShorthandAssign": "error" | ||
}, | ||
"suspicious": { | ||
"noConsoleLog": "error", | ||
"useAwait": "error" | ||
} | ||
} | ||
}, | ||
"formatter": { | ||
"attributePosition": "multiline" | ||
}, | ||
"files": { | ||
"ignore": [ | ||
"**/.idea", | ||
"**/node_modules", | ||
"**/dist", | ||
"**/.env", | ||
"**/.DS_Store", | ||
"**/data" | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"include": ["*.config.js"], | ||
"linter": { | ||
"rules": { | ||
"style": { | ||
"noDefaultExport": "off" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"include": ["*.spec.ts", "*.spec.tsx"], | ||
"linter": { | ||
"rules": { | ||
"style": { | ||
"noNamespaceImport": "off" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"include": ["tsconfig.*.json"], | ||
"json": { | ||
"parser": { | ||
"allowComments": true | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.