Skip to content

Commit

Permalink
feat(pre-commit): only run eslint on changed lines as clang-format
Browse files Browse the repository at this point in the history
This will make it less scaring to make changes to outdated
mappings that are not style-conform.
  • Loading branch information
Swiftb0y committed Dec 5, 2023
1 parent 42893f2 commit a93beb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": [ "eslint:recommended",
"plugin:jsdoc/recommended"],
"plugin:jsdoc/recommended",
"plugin:diff/diff"],

"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ repos:
- eslint-plugin-jsdoc@^v46.5.1
- "@typescript-eslint/eslint-plugin"
- "@typescript-eslint/parser"
- eslint-plugin-diff@^2.0.3
- repo: local
hooks:
- id: clang-format
Expand Down

0 comments on commit a93beb7

Please sign in to comment.