summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorpatwork <patwork@gmail.com>2024-05-12 04:16:02 +0200
committerpatwork <patwork@gmail.com>2024-05-22 11:32:25 +0200
commit1a89ae70eb24057c1d4b87958eae647c2b42a7ca (patch)
treebdb8927c79619697e5b34f603c8cd0e9d1d6e405 /.pre-commit-config.yaml
parent8e2141eac534f6984bb0bdbcefbd17de27ae0993 (diff)
downloadredot-engine-1a89ae70eb24057c1d4b87958eae647c2b42a7ca.tar.gz
Upgrade to eslint 9
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml47
1 files changed, 16 insertions, 31 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index dd51d7b419..c9a7714023 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -74,37 +74,6 @@ repos:
# files: ^(doc/classes|.*/doc_classes)/.*\.xml$
# args: [--schema, doc/class.xsd]
- - repo: https://github.com/pre-commit/mirrors-eslint
- rev: v8.46.0
- hooks:
- - id: eslint
- name: eslint-engine
- files: ^(platform/web/js/engine/|js/jsdoc2rst/).*\.js$
- args: [--fix, --no-eslintrc, --config, platform/web/.eslintrc.engine.js]
- additional_dependencies: &eslint-deps
- - eslint@8.46.0
- - eslint-config-airbnb-base@15.0.0
- - eslint-plugin-import@2.28.0
- - eslint-plugin-html@7.1.0
- - '@html-eslint/eslint-plugin@0.19.1'
- - '@html-eslint/parser@0.19.1'
- - id: eslint
- name: eslint-libs
- files: ^(platform/web/js/libs/|modules/).*\.js$
- args: [--fix, --no-eslintrc, --config, platform/web/.eslintrc.libs.js]
- additional_dependencies: *eslint-deps
- - id: eslint
- name: eslint-sw
- files: ^misc/dist/html/service-worker\.js$
- args: [--fix, --no-eslintrc, --config, platform/web/.eslintrc.sw.js]
- additional_dependencies: *eslint-deps
- - id: eslint
- name: eslint-html
- files: ^misc/dist/html/.*\.html$
- types: [html]
- args: [--fix, --no-eslintrc, --config, platform/web/.eslintrc.html.js]
- additional_dependencies: *eslint-deps
-
- repo: local
hooks:
- id: make-rst
@@ -120,6 +89,22 @@ repos:
entry: python3 doc/tools/doc_status.py
files: ^(doc/classes|.*/doc_classes)/.*\.xml$
+ - id: eslint
+ name: eslint
+ language: node
+ entry: eslint
+ files: ^(platform/web/js/|modules/|misc/dist/html/).*\.(js|html)$
+ args: [--fix, --no-warn-ignored, --no-config-lookup, --config, platform/web/eslint.config.cjs]
+ additional_dependencies:
+ - '@eslint/js@^9.3.0'
+ - '@html-eslint/eslint-plugin@^0.24.1'
+ - '@html-eslint/parser@^0.24.1'
+ - '@stylistic/eslint-plugin@^2.1.0'
+ - 'eslint@^9.3.0'
+ - 'eslint-plugin-html@^8.1.1'
+ - 'globals@^15.3.0'
+ - 'espree@^10.0.1'
+
- id: jsdoc
name: jsdoc
language: node