Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: revert removed flags from lint-staged config #66381

Merged
merged 2 commits into from
May 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
module.exports = {
'*.{js,jsx,mjs,ts,tsx,mts}': [
'prettier --write',
'prettier --with-node-modules --ignore-path .prettierignore --write',
Copy link
Member Author

Choose a reason for hiding this comment

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

revert flags including --ignore-path to avoid ignoring from .gitignore.

'eslint --no-ignore --max-warnings=0 --fix',
],
'*.{json,md,mdx,css,html,yml,yaml,scss}': ['prettier --write'],
'*.rs': ['cargo fmt'],
'*.{json,md,mdx,css,html,yml,yaml,scss}': [
'prettier --with-node-modules --ignore-path .prettierignore --write',
],
'*.rs': ['cargo fmt --'],
Copy link
Member Author

Choose a reason for hiding this comment

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

}
Loading