Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ out/
node_modules/
.npmrc
tests/test-project/coverage/
.eslintcache
45 changes: 45 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
ci:
# format compatible with commitlint
autoupdate_commit_msg: "chore: pre-commit autoupdate"
autoupdate_schedule: monthly
autofix_commit_msg: |
chore: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
skip:
- codecov
- depcheck
- eslint
- compare-devfile
- compare-devcontainer
minimum_pre_commit_version: 4.0.0 # Related to https://github.com/ekalinin/nodeenv/issues/369
repos:
- repo: local
hooks:
- id: eslint
name: eslint
entry: npm
language: system
args:
- exec
- --
- eslint
- --no-warn-ignored
- --color
- --format=gha
- --fix
- -v
- --cache
- --max-warnings
- "0"
pass_filenames: false
files: \.m?[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]

- id: git-dirty
name: Check if git reports dirty
entry: git diff --exit-code
language: system
pass_filenames: false
always_run: true
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'

export default defineConfig([
{
ignores: ['**/*.test.js'],
ignores: ['**/*.test.js', '.eslintrc.json', '.eslintcache', './**/out', 'tests/test-project/resources'],
},
eslintPluginPrettierRecommended,
{
Expand Down
60 changes: 60 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"eslint": "^9.27.0",
"eslint-config-prettier": "^10.1.5",
"eslint-define-config": "^2.1.0",
"eslint-formatter-gha": "^1.5.2",
"eslint-plugin-prettier": "^5.4.0",
"lerna": "^8.2.2",
"prettier": "3.5.3",
Expand Down
Loading