-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Back to ESLint and prettier, fix a few minor issues with the code
- Loading branch information
Showing
18 changed files
with
666 additions
and
71 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 |
---|---|---|
|
@@ -14,26 +14,35 @@ repos: | |
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
- repo: https://github.com/adamchainz/django-upgrade | ||
rev: 1.18.0 | ||
rev: 1.21.0 | ||
hooks: | ||
- id: django-upgrade | ||
args: [--target-version, "3.2"] | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: "v0.4.9" | ||
rev: "v0.6.4" | ||
hooks: | ||
- id: ruff | ||
- 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.1.3 | ||
rev: 2.2.3 | ||
hooks: | ||
- id: pyproject-fmt | ||
- repo: https://github.com/abravalheri/validate-pyproject | ||
rev: v0.18 | ||
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
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
|
||
|
||
export default [ | ||
{files: ["**/*.js"], languageOptions: {sourceType: "script"}}, | ||
{languageOptions: { globals: globals.browser }}, | ||
pluginJs.configs.recommended, | ||
{ | ||
rules: { | ||
"no-unused-vars": [ | ||
"error", | ||
{argsIgnorePattern: "^_", varsIgnorePattern: "^_"} | ||
] | ||
}, | ||
}, | ||
]; |
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.