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

Linting using StandardJS #155

Merged
merged 22 commits into from
Oct 6, 2017
Merged

Linting using StandardJS #155

merged 22 commits into from
Oct 6, 2017

Conversation

davezen1
Copy link
Contributor

@davezen1 davezen1 commented Oct 2, 2017

Using StandardJS for linting because it simpler with less moving parts to worry about in terms of configuration, extra files.

  • npm run lint works the same as before to lint the js in our app/js test and app/kitchensink/kitchensink.js but it also automatically fixes the code.
  • Also added snazzy to format the output of standard in a friendly format
  • Updated dependencies to remove and update per standardjs and overall cleanup

https://standardjs.com/
https://standardjs.com/rules.html#javascript-standard-style
https://github.com/standard/snazzy

See #136

@yogeshgadge
Copy link
Contributor

yogeshgadge commented Oct 4, 2017

@davezen1 Came across standard/standard#122 It seems .eslintrc and .eslintignore will not be honored by standard. Not sure.

It seems we can do the following based on standard/standard#122 (comment)

Or, add "env": [ "mocha" ] to the package.json under the "standard" property.

@davezen1 davezen1 merged commit 34196f8 into US-CBP:master Oct 6, 2017
@davezen1 davezen1 deleted the fix-eslint branch January 30, 2020 15:52
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.

3 participants