diff --git a/.eslintrc.json b/.eslintrc.json index 5c0bd73..38174f4 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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 } diff --git a/package.json b/package.json index ec2dafc..4e37676 100644 --- a/package.json +++ b/package.json @@ -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 --" } }