diff options
author | matsuyoshi <sfbgwm30@gmail.com> | 2021-03-28 08:31:40 +0300 |
---|---|---|
committer | matsuyoshi <sfbgwm30@gmail.com> | 2021-03-28 09:02:00 +0300 |
commit | 31e29c2725b842a1fabd469a315469b7314d18a6 (patch) | |
tree | e538892e3dc59dcbc2fc12a36f3a431e9afa4cff | |
parent | 767ad187b7ebe6f2cc1376adb62f3542e0444eb3 (diff) |
fix lint-staged script
-rw-r--r-- | package.json | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/package.json b/package.json index 8919a9b..32916d8 100644 --- a/package.json +++ b/package.json @@ -42,11 +42,11 @@ } }, "lint-staged": { - "!(bundle).html": [ - "prettier-eslint --write $PWD/'static/src/**/*.js $PWD/'layouts/**/*.html'" + "layouts/**/!(bundle).html": [ + "prettier-eslint --write 'static/src/**/*.js' 'layouts/**/*.html'" ], - "!(bundle).js": [ - "eslint $PWD/'static/src/**/*.js'" + "static/src/*.js": [ + "eslint 'static/src/*.js'" ] } } |