Skip to content

Commit

Permalink
Update lint staged config (#10)
Browse files Browse the repository at this point in the history
* test format

* rm test code

* updated eslint config

* updated lint-staged config: include cjs, mjs

* rm bash comment
  • Loading branch information
clhenrick authored Jan 19, 2022
1 parent 157d72d commit 4fed387
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
},
"overrides": [
{
"files": ["rollup.config.js", "web-test-runner.config.js"],
"files": [
"rollup.config.js",
"web-dev-server.config.mjs",
"web-test-runner.config.mjs"
],
"env": {
"node": true
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
},
"customElements": "custom-elements.json",
"lint-staged": {
"*.{js,ts}": "eslint --cache --fix",
"*.{html,js,json,md,ts,css}": "npm run format --"
"*.{js,ts,cjs,mjs}": "eslint --cache --fix",
"*.{html,js,cjs,mjs,json,md,ts,css}": "npm run format --"
}
}

0 comments on commit 4fed387

Please sign in to comment.