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

Suggestion: make it work without package.json #249

Closed
Deadarius opened this issue Sep 5, 2015 · 3 comments

Comments

@Deadarius
Copy link

commented Sep 5, 2015

Currently if I need to specify globals/ignores etc I have to write it down in package.json, which is perfectly fine, but this is a linter for javascript and javascript doesn't necessarily mean node.js - In my concrete case I work on meteor project. Meteor has it's own pluggable linting system as part of the build process and I am writing standard plugin for it. Currently I am reading globals from file named stadard.json in project's root and it causes problem because text editors obviously don't understand it.

So suggestion is to add support for standard.json or some other file as source of "configuration" for linter?

@feross

This comment has been minimized.

Copy link
Member

commented Sep 5, 2015

How is adding a standard.json better than just using package.json? You can still have a package.json file even if your project isn't used by node.js. In fact, lots of front-end only projects have one to install gulp and other tooling.

Just make a package.json and do:

{
  "standard": {
    "ignore": [ "path1", "path2" ]
  }
}

None of the usual package.json fields are required by standard.

Please correct me if I'm misunderstanding what you're asking for.

@feross feross closed this Sep 5, 2015

@Deadarius

This comment has been minimized.

Copy link
Author

commented Sep 6, 2015

For some reason I was thinking that if you add package.json to Meteor project it fails miserably due to generating a more "normal" node app as build step which doesn't seem to be the case. Sorry for wasting time, I should have tried it first:)

@feross

This comment has been minimized.

Copy link
Member

commented Sep 8, 2015

No problem. You can also use the command line flag --global if you don't want to add a package.json.

See standard --help for more.

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.