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

question: add an eslint rule that isn't in the default xo set? #174

Closed
tony-kerz opened this issue Jan 20, 2017 · 2 comments
Closed

question: add an eslint rule that isn't in the default xo set? #174

tony-kerz opened this issue Jan 20, 2017 · 2 comments

Comments

@tony-kerz
Copy link

love being liberated from managing eslint config!

some of the projects i work on use the no-console rule.

is there a strategy to augment xo with an additional rule like that?

@tony-kerz tony-kerz changed the title is there a way to add an eslint rule that isn't in the default xo set? question: add an eslint rule that isn't in the default xo set? Jan 20, 2017
@Qix-
Copy link

Qix- commented Jan 20, 2017

It's in the readme, along with all of the other documentation about XO :)

@Qix- Qix- closed this as completed Jan 20, 2017
@tony-kerz
Copy link
Author

hi @qix,

sorry for being dense.

i had read over the read-me, and when i read that section the language made me think it was about overriding settings on rules that were already in the xo rule set, but based on your comment, i made the leap that it just merges what is provided and lo-n-behold, the following works like a champ in package.json:

  "xo": {
    "space": true,
    "semicolon": false,
    "rules": {
      "no-console": "error"
    }
  }

thanks for the clue!

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

No branches or pull requests

2 participants