-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from acsone/upgrade-js-linters
Modernize js linters
- Loading branch information
Showing
5 changed files
with
230 additions
and
190 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,35 +3,50 @@ exclude: | | |
.pot$| | ||
.po$| | ||
^.gitlab| | ||
^[^/]*\.config\.cjs| | ||
# NOT INSTALLABLE ADDONS | ||
# END NOT INSTALLABLE ADDONS | ||
^LICENCE | ||
default_language_version: | ||
python: python{{ python_version }} | ||
node: "16.17.0" | ||
node: "22.9.0" | ||
minimum_pre_commit_version: "4" | ||
repos: | ||
- repo: https://github.com/oca/maintainer-tools | ||
rev: a24deac77aff2f3c968b3b4c269d6aec91a379da | ||
hooks: | ||
# update the NOT INSTALLABLE ADDONS section above | ||
- id: oca-update-pre-commit-excluded-addons | ||
args: [--addons-dir=odoo/addons] | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.3 | ||
- repo: local | ||
hooks: | ||
- id: prettier | ||
name: prettier + plugin-xml | ||
name: prettier (with plugin-xml) | ||
entry: prettier | ||
args: | ||
- --write | ||
- --list-different | ||
- --ignore-unknown | ||
types: [text] | ||
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$ | ||
language: node | ||
additional_dependencies: | ||
- "[email protected]" | ||
- "@prettier/[email protected]" | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v8.34.0 | ||
- "[email protected]" | ||
- "@prettier/[email protected]" | ||
- repo: local | ||
hooks: | ||
- id: eslint | ||
verbose: true | ||
name: eslint | ||
entry: eslint | ||
args: | ||
- --color | ||
- --fix | ||
verbose: true | ||
types: [javascript] | ||
language: node | ||
additional_dependencies: | ||
- "[email protected]" | ||
- "[email protected]" | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
|
Oops, something went wrong.