Skip to content

Commit

Permalink
Fix lint settings to honor .mjs files (#6370)
Browse files Browse the repository at this point in the history
There is a file with `.mjs` extension: `scripts/benchmark-rule.mjs`
  • Loading branch information
ybiquitous committed Sep 28, 2022
1 parent 3d99d7f commit eee9deb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -40,7 +40,7 @@
"jest": "jest",
"lint": "npm-run-all --parallel --continue-on-error lint:*",
"lint:formatting": "prettier . --check --cache",
"lint:js": "eslint . --cache --max-warnings=0",
"lint:js": "eslint . --cache --max-warnings=0 --ext .js,.mjs",
"lint:md": "remark . --quiet --frail",
"lint:types": "tsc",
"prepare": "husky install && patch-package",
Expand All @@ -52,8 +52,8 @@
"watch": "jest --watch"
},
"lint-staged": {
"*.js": "eslint --cache --fix",
"*.{js,json,md,ts,yml}": "prettier --write"
"*.{js,mjs}": "eslint --cache --fix",
"*.{js,json,md,mjs,ts,yml}": "prettier --write"
},
"prettier": "@stylelint/prettier-config",
"eslintConfig": {
Expand Down

0 comments on commit eee9deb

Please sign in to comment.