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 JS linting error from pre-commit. #1670

Merged
merged 1 commit into from
Sep 11, 2022

Conversation

tim-schilling
Copy link
Member

prettier v3 changed the default of trailing comma to all which seems to be problematic for ESLint.

prettier v3 changed the default of trailing comma to all which seems to be
problematic for ESLint.
@tim-schilling
Copy link
Member Author

I did a little digging for eslint configurations, but couldn't find an easy answer.

@tim-schilling tim-schilling merged commit b20ddd3 into django-commons:main Sep 11, 2022
@tim-schilling tim-schilling deleted the js-lint-fix branch September 11, 2022 18:15
@matthiask
Copy link
Member

https://www.npmjs.com/package/eslint-config-prettier would deactivate conflicting ESLint rules, but I think this fix is fine.

@tim-schilling
Copy link
Member Author

Yeah, that's better.

@tim-schilling
Copy link
Member Author

Hmm, I take that back. I think I like the change from this PR a bit more since it doesn't require use of additional_dependencies in the pre-commit yaml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants