Skip to content

Commit 62fc1dd

Browse files
committed
Make sure we run eslint and prettier on all relevant source files
1 parent ebec691 commit 62fc1dd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"custom-elements"
2020
],
2121
"scripts": {
22-
"lint:eslint": "eslint --ext .ts,.html . --ignore-path .gitignore",
23-
"format:eslint": "eslint --ext .ts,.html . --fix --ignore-path .gitignore",
24-
"lint:prettier": "prettier \"**/*.js\" \"**/*.ts\" --check --ignore-path .gitignore",
25-
"format:prettier": "prettier \"**/*.js\" \"**/*.ts\" --write --ignore-path .gitignore",
22+
"lint:eslint": "eslint --ext .ts,.html,.mjs,.cjs . --ignore-path .gitignore",
23+
"format:eslint": "eslint --ext .ts,.html,.mjs,.cjs . --fix --ignore-path .gitignore",
24+
"lint:prettier": "prettier \"**/*.js\" \"**/*.ts\" \"**/*.mjs\" --check --ignore-path .gitignore",
25+
"format:prettier": "prettier \"**/*.js\" \"**/*.ts\" \"**/*.mjs\" --write --ignore-path .gitignore",
2626
"lint": "npm run lint:eslint && npm run lint:prettier",
2727
"format": "npm run format:eslint && npm run format:prettier",
2828
"storybook": "npm run bootstrap && npm run storybook:analyze && start-storybook -p 6006 -s ./.storybook/images",
@@ -113,8 +113,8 @@
113113
"./packages/*"
114114
],
115115
"lint-staged": {
116-
"**/*.ts": "tsc-files --project tsconfig-lint-staged.json",
117-
"**/*.{mjs}": "eslint --cache --fix -c .eslintrc.js",
116+
"*.ts": "tsc-files --project tsconfig-lint-staged.json",
117+
"*.{js,ts,mjs,cjs,html}": "eslint --cache --fix -c .eslintrc.js",
118118
"*": "prettier --ignore-unknown --write"
119119
}
120120
}

0 commit comments

Comments
 (0)