First crack at updating JSHint rules
This commit is contained in:
parent
0e77dc2ae8
commit
5315c8b9ae
61
.jshintrc
61
.jshintrc
|
@ -1,36 +1,33 @@
|
||||||
{
|
{
|
||||||
"curly": true,
|
|
||||||
"eqeqeq": true,
|
|
||||||
"immed": true,
|
|
||||||
"latedef": true,
|
|
||||||
"newcap": true,
|
|
||||||
"noarg": true,
|
|
||||||
"sub": true,
|
|
||||||
"undef": true,
|
|
||||||
"unused": true,
|
|
||||||
"boss": true,
|
|
||||||
"eqnull": true,
|
|
||||||
"node": true,
|
"node": true,
|
||||||
|
|
||||||
"globals": [
|
"globals": {
|
||||||
"Adaptor",
|
"every": true,
|
||||||
"Cylon",
|
"after": true,
|
||||||
"CylonConfig",
|
"constantly": true,
|
||||||
"Driver",
|
|
||||||
"DigitalPin",
|
"it": true,
|
||||||
"Logger",
|
"expect": true,
|
||||||
"BasicLogger",
|
"source": true,
|
||||||
"NullLogger",
|
"describe": true,
|
||||||
"Loopback",
|
"beforeEach": true,
|
||||||
"Ping",
|
"afterEach": true
|
||||||
"Robot",
|
},
|
||||||
"TestDriver",
|
|
||||||
"sinon",
|
"boss": true,
|
||||||
"subclass",
|
"curly": true,
|
||||||
"proxyTestStubs",
|
"eqeqeq": true,
|
||||||
"proxyFunctionsToObject",
|
"eqnull": true,
|
||||||
"every",
|
"immed": true,
|
||||||
"hasProp",
|
"indent": 2,
|
||||||
"bind"
|
"latedef": true,
|
||||||
]
|
"maxlen": 80,
|
||||||
|
"newcap": true,
|
||||||
|
"noarg": true,
|
||||||
|
"nonew": true,
|
||||||
|
"quotmark": "double",
|
||||||
|
"strict": true,
|
||||||
|
"sub": true,
|
||||||
|
"undef": true,
|
||||||
|
"unused": true
|
||||||
}
|
}
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -15,7 +15,7 @@ cover:
|
||||||
@istanbul cover $(BIN)/_mocha $(TEST_FILES) --report lcovonly -- -R spec
|
@istanbul cover $(BIN)/_mocha $(TEST_FILES) --report lcovonly -- -R spec
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@jshint ./lib
|
@jshint ./lib/**/*.js ./spec/lib/**/*.js ./examples/**/*.js
|
||||||
|
|
||||||
release:
|
release:
|
||||||
@git push origin master
|
@git push origin master
|
||||||
|
|
Loading…
Reference in New Issue