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

Add prettier to linting configuration #154

Merged
merged 2 commits into from
Oct 1, 2019

Conversation

jackson-dean
Copy link
Contributor

  • Remove ember-cli-eslint dependency and replace it with direct
    dependency on eslint and required plugins.

NOTE: disabling no-new-mixins for since prefetch currently relies on
a mixin.

Copy link
Collaborator

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

@jackson-dean - You also need to add yarn eslint . to .travis.yml or linting isn't enforced in CI.

@jackson-dean
Copy link
Contributor Author

ahh, i thought this is covered by yarn lint:js? which just wraps yarn eslint .

@jackson-dean
Copy link
Contributor Author

jackson-dean commented Sep 25, 2019

and which is already in travis config. I can change it though, just want to make sure its not running twice @rwjblue

from the logs for the last CI run for this PR https://travis-ci.org/nickiaconis/ember-prefetch/jobs/589146899#L502

@rwjblue
Copy link
Collaborator

rwjblue commented Sep 27, 2019

Hmm, you are definitely correct. I guess I assumed that this wasn't running in CI because I assumed there would be TONS of changes to apply prettier to the codebase.

But I think that whats happening here is that you've added the packages for prettier, but not added it to the eslint config. Is that intentional?

@jackson-dean
Copy link
Contributor Author

jackson-dean commented Sep 27, 2019 via email

@rwjblue
Copy link
Collaborator

rwjblue commented Sep 27, 2019

I can look at adding prettier configs here if you would like to have it set up

ya, definitely love to use prettier here...

@jackson-dean
Copy link
Contributor Author

jackson-dean commented Sep 27, 2019 via email

- Remove ember-cli-eslint dependency and replace it with direct
dependency on eslint and required plugins.

NOTE: disabling no-new-mixins for since prefetch currently relies on
a mixin.
@jackson-dean
Copy link
Contributor Author

jackson-dean commented Sep 30, 2019

I added a separate commit for running prettier. Can make it a separate PR for adding the prettier config and running prettier if that is preferred.

npx prettier --write '**/*.js'
@rwjblue rwjblue merged commit cd654e9 into nickiaconis:master Oct 1, 2019
@rwjblue rwjblue changed the title Replace ember-cli-eslint with eslint Add prettier to linting configuration Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants