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

Eslint: Lint .eslintrc.js #247

Merged
merged 1 commit into from
Jun 4, 2018
Merged

Eslint: Lint .eslintrc.js #247

merged 1 commit into from
Jun 4, 2018

Conversation

acjh
Copy link
Contributor

@acjh acjh commented May 31, 2018

What is the purpose of this pull request? (put "X" next to an item, remove the rest)

• [x] Other, please explain: Code quality

What is the rationale for this request?

Consistency. These are used in .eslintrc.js because the official guide uses double quotes:

/* eslint quote-props: ["error", "always"] */
/* eslint quotes: ["error", "double"] */

What changes did you make? (Give an overview)

  • Add !.eslintrc.js to .eslintignore
  • Lint .eslintrc.js

Provide some example code that this change will affect:

- devDependencies: [
+ "devDependencies": [

Is there anything you'd like reviewers to focus on?

-

Testing instructions:

$ npm run lint

"**/gulpfile.*.js", // gulp config
"**/Gruntfile{,.js}", // grunt config
"**/protractor.conf.js", // protractor config
"**/protractor.conf.*.js", // protractor config
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nicholaschuayunzhi Did you get these from somewhere, or can I sort alphabetically?

Copy link
Contributor

Choose a reason for hiding this comment

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

I got it off the airbnb config last time.
https://github.com/airbnb/javascript/blob/ae82d7678303bd08242299a4a9e2c47717bf9c6b/packages/eslint-config-airbnb-base/rules/imports.js#L71-L91

It was to allow mock folders to import dev dependencies. At the time of the commit, they had only just committed the change and was not released yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like it's still not released yet. I'll keep the order then. Thanks!

@yamgent yamgent merged commit a167a85 into MarkBind:master Jun 4, 2018
@yamgent yamgent added this to the v1.8.0 milestone Jun 4, 2018
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