Skip to content

Commit

Permalink
ci: lint .mjs files too
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Sep 26, 2023
1 parent f9c78f7 commit fa135f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"./.eslintrc.js.json",
"./.eslintrc.react.json"
],
"files": ["*.js", "*.jsx"],
"files": ["*.js", "*.jsx", "*.mjs"],
"plugins": ["import", "jsx-a11y"]
},
{
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
},
{
"files": ["*.js", "*.jsx"],
"files": ["*.js", "*.jsx", "*.mjs"],
"options": {
"parser": "flow",
"printWidth": 120,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"lint": "npm-run-all --continue-on-error lint:** && pnpm run --recursive lint",
"lint-fix": "npm-run-all --continue-on-error lint-fix:** prettier",
"lint-fix:css": "stylelint --fix \"**/*.{css,scss}\"",
"lint-fix:js": "eslint --ext \".js,.json,.jsx,.mdx,.ts,.tsx\" --fix --report-unused-disable-directives .",
"lint-fix:js": "eslint --ext \".js,.json,.jsx,.mdx,.mjs,.ts,.tsx\" --fix --report-unused-disable-directives .",
"lint:css": "stylelint \"**/*.{css,scss}\"",
"lint:js": "eslint --ext .js,.json,.jsx,.mdx,.ts,.tsx --report-unused-disable-directives .",
"lint:js": "eslint --ext .js,.json,.jsx,.mdx,.mjs,.ts,.tsx --report-unused-disable-directives .",
"lint:package": "npmPkgJsonLint \"**/package.json\"",
"lint:prettier": "prettier --check .",
"postinstall": "husky install",
Expand Down

1 comment on commit fa135f6

@vercel
Copy link

@vercel vercel bot commented on fa135f6 Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.