-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Back to biome, now with an actually good configuration
- Loading branch information
Showing
6 changed files
with
68 additions
and
47 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 |
---|---|---|
|
@@ -24,6 +24,12 @@ repos: | |
- id: ruff | ||
args: [--unsafe-fixes] | ||
- id: ruff-format | ||
- repo: https://github.com/biomejs/pre-commit | ||
rev: "v0.4.0" | ||
hooks: | ||
- id: biome-check | ||
additional_dependencies: ["@biomejs/[email protected]"] | ||
args: [--unsafe] | ||
- repo: https://github.com/tox-dev/pyproject-fmt | ||
rev: 2.2.3 | ||
hooks: | ||
|
@@ -32,18 +38,3 @@ repos: | |
rev: v0.19 | ||
hooks: | ||
- id: validate-pyproject | ||
- repo: local | ||
hooks: | ||
- id: prettier | ||
name: prettier | ||
entry: npx [email protected] --no-semi --write | ||
language: system | ||
types_or: [css, scss] | ||
require_serial: true | ||
- id: eslint | ||
name: eslint | ||
entry: yarn eslint | ||
language: system | ||
types_or: [javascript] | ||
require_serial: true | ||
verbose: true |
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,57 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | ||
"organizeImports": { | ||
"enabled": false | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"indentWidth": 2 | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"a11y": { | ||
"noSvgWithoutTitle": "off" | ||
}, | ||
"correctness": { | ||
"noUndeclaredVariables": "error", | ||
"noUnusedImports": "error", | ||
"noUnusedVariables": "error", | ||
"useArrayLiterals": "error", | ||
"useHookAtTopLevel": "error" | ||
}, | ||
"security": { | ||
"noDangerouslySetInnerHtml": "warn" | ||
}, | ||
"style": { | ||
"noParameterAssign": "off", | ||
"useForOf": "warn" | ||
}, | ||
"suspicious": { | ||
"noArrayIndexKey": "warn", | ||
"noAssignInExpressions": "off" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"semicolons": "asNeeded" | ||
}, | ||
"globals": ["django", "CKEDITOR"] | ||
}, | ||
"css": { | ||
"formatter": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true | ||
} | ||
}, | ||
"json": { | ||
"formatter": { | ||
"enabled": false | ||
} | ||
} | ||
} |
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
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 was deleted.
Oops, something went wrong.