Skip to content

Commit

Permalink
pre-commit autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed May 6, 2022
1 parent dac3ac9 commit 8139a3a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 24 deletions.
14 changes: 2 additions & 12 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
es6: true,
node: true,
},
extends: ["eslint:recommended", "prettier", "plugin:react/recommended"],
extends: ["eslint:recommended", "prettier"],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
Expand All @@ -20,23 +20,13 @@ module.exports = {
requireConfigFile: false,
sourceType: "module",
},
plugins: ["react", "react-hooks"],
rules: {
"no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "React|Fragment|h|^_",
varsIgnorePattern: "^_",
},
],
"react/prop-types": "off",
"react/display-name": "off",
"react-hooks/rules-of-hooks": "warn", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
},
settings: {
react: {
version: "detect",
},
},
}
19 changes: 8 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: ".yarn/|yarn.lock"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.2.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
Expand All @@ -16,12 +16,12 @@ repos:
language: system
always_run: true
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
rev: v2.32.1
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.4.0
rev: 1.6.1
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
Expand All @@ -31,7 +31,7 @@ repos:
- id: isort
args: [--profile=black, --lines-after-imports=2, --combine-as]
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
Expand All @@ -40,21 +40,18 @@ repos:
- id: flake8
args: ["--ignore=E203,E501,W503"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
rev: v2.6.2
hooks:
- id: prettier
args: [--list-different, --no-semi]
exclude: "^conf/|.*\\.html$"
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.7.0
rev: v8.14.0
hooks:
- id: eslint
additional_dependencies:
- eslint@8.7.0
- eslint-config-prettier@8.3.0
- eslint-plugin-react@^7.28.0
- eslint-plugin-react-hooks@^4.3.0
- eslint@8.14.0
- eslint-config-prettier@8.5.0
- "@babel/core"
- "@babel/eslint-parser"
- "@babel/preset-env"
- "@babel/preset-react"
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
release = subprocess.check_output(
"git fetch --tags; git describe --always --tags",
shell=True,
universal_newlines=True,
text=True,
).strip()
language = "en"

Expand Down

0 comments on commit 8139a3a

Please sign in to comment.