From 8139a3aac9ea866cbc7b4e17450e28c3fdbf9852 Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Fri, 6 May 2022 10:28:56 +0200 Subject: [PATCH] pre-commit autoupdate --- .eslintrc.js | 14 ++------------ .pre-commit-config.yaml | 19 ++++++++----------- docs/conf.py | 2 +- 3 files changed, 11 insertions(+), 24 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index ac9c4d2..2840094 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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", @@ -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", - }, }, } diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1cc4aa0..7ef7acd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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"] @@ -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 @@ -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" diff --git a/docs/conf.py b/docs/conf.py index f5c0d9c..12d2641 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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"