ricardofbarros / linter-js-standard

Atom linter plugin for JavaScript, using JavaScript Standard Style
https://atom.io/packages/linter-js-standard
MIT License
99 stars 48 forks source link

How do I select which style should be used for each project ? #167

Closed gfviegas closed 7 years ago

gfviegas commented 7 years ago

Hi, I might be missing something here, but the docs are not clear enough if so.

I have projects where I use semi-standard, and others that uses standard. Is there a way to tell the linter to use "standard" on the project B and to use "semi" on project A?

I know there's the checkStyleDevDependencies option, but it'll disable the lint for all projects which I don't have (or I just can't, like 3rd party plugins), and I don't want that, I just want to tell linter to use the style A or B, not to disable it to others.

Wouldn't be nice if we look in package.json for an option like style: 'semi-standard', or something?

gfviegas commented 7 years ago

@ricardofbarros ?

ricardofbarros commented 7 years ago

Hey @gfviegas, is there something stopping you to install & save standard / semistandard to those project's devDependencies ?

sonicdoe commented 7 years ago

If you want to override the style for a specific project, you’ll have to install standard (or semistandard) locally. However, you do not have to enable the checkStyleDevDependencies as linter-js-standard will always prefer the local version.

I’ll look into improving the documentation in the future.