-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
chore: enforce LF line endings #8809
Conversation
@@ -86,8 +86,8 @@ | |||
"jest-coverage": "yarn jest --coverage", | |||
"lint": "eslint . --cache --report-unused-disable-directives --ext js,jsx,ts,tsx,md", | |||
"lint-es5-build": "eslint --no-eslintrc --no-ignore --env=browser packages/*/build-es5", | |||
"lint:md": "yarn --silent lint:md:ci --fix", | |||
"lint:md:ci": "prettylint '**/*.{md,yml,yaml}' --ignore-path .gitignore", | |||
"lint:prettier": "yarn --silent lint:prettier:ci --fix", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought I'd also rename the script while on it since it's no longer just md
. Simen mentioned this name being misleading some time ago.
@@ -1,11 +1,17 @@ | |||
# EditorConfig helps developers define and maintain consistent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now this pretty much looks like the typical editorconfig examples, except for the md
/snap
override
Enforce LF from prettier config as well? Or does prettier read the editorconfig? |
Yes, prettier understands a few editorconfig settings https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath-options |
(verified it by running |
Super! What do you think about a comment in editor config file to make the assumption explicit? |
@pedrottimark sure, why not - fine with that which I just added? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for keeping the repo on a firm foundation to receive contributions from the community
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Fixes #8788.
Test plan
eslint-plugin-prettier
/prettylint
lint / autofix this for us.