Skip to content

Commit

Permalink
build: ensure mjs files are linted
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDJM committed Sep 22, 2023
1 parent cf37a01 commit a1096e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
"*.js": ["eslint --fix", "prettier --write"],
"*.{js,mjs}": ["eslint --fix", "prettier --write"],
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"scripts": {
"commit": "git cz",
"lint": "npm run eslint -- --fix && npm run prettier -- --write",
"eslint": "eslint --ext .js --ignore-path .gitignore .",
"prettier": "prettier '**/*.js' --ignore-path .gitignore",
"eslint": "eslint --ext .js,.mjs --ignore-path .gitignore .",
"prettier": "prettier '**/*.{js,mjs}' --ignore-path .gitignore",
"prerelease": "npm run lint && npm run build",
"release": "git add src/. dist/. && git add index.js && standard-version -a",
"prepare": "husky install",
Expand Down

0 comments on commit a1096e1

Please sign in to comment.