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

Upgrade to latest eslint and eslint-plugin-react #18

Merged
merged 2 commits into from Jun 20, 2016
Merged

Conversation

randycoulman
Copy link
Contributor

@randycoulman randycoulman commented Jun 17, 2016

Add new rules to configurations.

Add new rules to configurations.
This fixes a bug in relative paths that was making our build fail.
@@ -328,6 +330,8 @@ module.exports = {
'max-depth': 1,
// specify the maximum length of a line in your program
'max-len': [1, 80, 2],
// enforce a maximum file length
'max-lines': 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Does 'max-lines': 0 mean there is no maximum, or is this saying the max number of lines is 0? If means the same as it reads, it might be a typo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It means this rule is disabled. For all of the rules, a single value means 'off' (0), 'warning' (1), or 'error' (2). If there is configuration, then it goes in an array, where the first element is the same as above, and the remaining values are config.

ESLint recently introduced support for using words instead of numbers; might be a good idea to adopt that at some point to make the config clearer.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it. Thanks for the clarification!

@conroywhitney
Copy link

LGTM 👍

@randycoulman randycoulman merged commit ea49a64 into master Jun 20, 2016
@randycoulman randycoulman deleted the update-eslint branch June 20, 2016 20:27
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.

None yet

3 participants