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

Framework: Use an eslintrc with a specific format #2664

Merged
merged 2 commits into from
Feb 2, 2016

Conversation

blowery
Copy link
Contributor

@blowery blowery commented Jan 21, 2016

Prior we were using an .eslintrc, which is supposed to be either JSON or YAML. This is now deprecated, in favor of .eslintrc., like .eslintrc.js for JavaScript. However, our config has comments in it, which are not legal JSON, so we should really move to the JS format.

See http://eslint.org/docs/user-guide/configuring#using-configuration-files for more details.

This patch moves to an .eslintrc.js and alters the format a bit to export the configuration object as the default, as per the config guide.

@blowery blowery added Framework [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jan 21, 2016
@blowery blowery self-assigned this Jan 21, 2016
'vars-on-top': 1,
'yoda': 0
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

missing semicolon?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice catch.

@gwwar
Copy link
Contributor

gwwar commented Feb 2, 2016

🚢

@gwwar gwwar added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Feb 2, 2016
blowery and others added 2 commits February 2, 2016 15:23
Prior we were using an .eslintrc, which is supposed to be either JSON or YAML. This is now deprecated, in favor of .eslintrc., like .eslintrc.js for JavaScript. See http://eslint.org/docs/user-guide/configuring#using-configuration-files for more details.

This patch moves to an .eslintrc.js and alters the format a bit to export the configuration object as the default, as per the config guide.
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.

3 participants