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

Prettier + ESLint + onchange = Happiness #493

Merged
merged 1 commit into from
Nov 13, 2020
Merged

Conversation

cjbarth
Copy link
Collaborator

@cjbarth cjbarth commented Nov 3, 2020

This adds support for prettier working along side eslint. It doesn't enable anything.

I'm marking this as draft because there is a problem with some variable replacement in one watch command that I'm working on, but I wanted to get this out there for review. I imagine that there will be a follow-on PR after this lands that will reformat all the code in one commit.

@cjbarth cjbarth marked this pull request as draft November 3, 2020 17:08
"no-console": 1, // Means warning
"prettier/prettier": 1 // Warning for now, until we get this cleaned up
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to remove eslint config from package.json in this case

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point 👍

May I ask what the rationale behind these rules was? I'm wondering if I should move them over or not.

    "no-undefined": "off",
    "no-unused-vars": "off",

Copy link
Contributor

Choose a reason for hiding this comment

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

image

I'm not the right person for this question) I think these rules should not be disabled, they are helpful

@markstos
Copy link
Contributor

markstos commented Nov 3, 2020

Good progress. We'll save this for a future 2.x release

@cjbarth cjbarth marked this pull request as ready for review November 3, 2020 18:44
@cjbarth
Copy link
Collaborator Author

cjbarth commented Nov 3, 2020

This PR is ready to be reviewed/merged now.

@cjbarth cjbarth merged commit 3338516 into node-saml:master Nov 13, 2020
@cjbarth cjbarth deleted the prettier branch November 13, 2020 19:29
@cjbarth cjbarth added the chore Refactoring, etc. to keep code-rot in check. label Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Refactoring, etc. to keep code-rot in check.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants