From eee9deb35190f46c5f964769d521fef5d7d1d7a8 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Wed, 28 Sep 2022 23:41:29 +0900 Subject: [PATCH] Fix lint settings to honor `.mjs` files (#6370) There is a file with `.mjs` extension: `scripts/benchmark-rule.mjs` --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index aab9718ecd..4f58e842f0 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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": {