Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHow do you use Standard with modules? #634
Comments
This comment has been minimized.
This comment has been minimized.
$ mkdir test
$ cd test/
$ mkdir some
$ mkdir some/local
$ echo "var a, b;" > some/local/module.js
$ standard
standard: Use JavaScript Standard Style (http://standardjs.com)
standard: Run `standard --fix` to automatically fix some problems.
./test/some/local/module.js:1:5: 'a' is defined but never used.
./test/some/local/module.js:1:8: 'b' is defined but never used.
./test/some/local/module.js:1:9: Extra semicolon.Whats up? edit: didn't mean to close yet |
dcousens
closed this
Sep 19, 2016
dcousens
reopened this
Sep 19, 2016
dcousens
added
the
question
label
Sep 19, 2016
This comment has been minimized.
This comment has been minimized.
|
Okay, my bad. I was using standard as so: standard app.jsStandard is recursive by default then? Cheers @dcousens |
izolate
closed this
Sep 19, 2016
This comment has been minimized.
This comment has been minimized.
|
Indeed, with some smarts to avoid |
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
izolate commentedSep 19, 2016
I'm stuck in a catch 22 situation trying to verify all internal code adheres to Standard. For example:
Standard checks
app.js, but not./some/local/module.js.Solution? Perhaps by using Browserify/Gulp:
Now this task executes standard on the complete bundle, which (rightfully) includes the
internalmodule, but also (wrongly) includes theexternalnpm module too. If any npm module NOT written in standard (most) is included in the bundle, the task will fail.Any solutions around this?