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

Added ESLint + Airbnb rules #12

Merged
merged 2 commits into from
Oct 6, 2019
Merged

Conversation

Bryze
Copy link
Contributor

@Bryze Bryze commented Oct 6, 2019

This pr addresses #10

Have introduced two variants of the script

  • npm run test:lint => to run eslint over the whole project

  • npm run test:lint-file <path-to-file> => to run eslint on a single file

@Bryze Bryze mentioned this pull request Oct 6, 2019
4 tasks
Copy link
Member

@ashokdey ashokdey left a comment

Choose a reason for hiding this comment

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

Thank for the PR @Bryze, can you make the said changes?

.eslintrc.js Outdated
Comment on lines 2 to 5
"env": {
"browser": true,
"es6": true
},
Copy link
Member

Choose a reason for hiding this comment

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

I think you have to add the following as well:

  • react
  • node

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think react is recognized as a plugin rather than an env variable. throws me an error when I try to add react: true to the env block.

.eslintrc.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Copy link
Member

@ashokdey ashokdey left a comment

Choose a reason for hiding this comment

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

👍

@ashokdey ashokdey merged commit 8c3c8a6 into knaxus:develop Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants