Add files for houndci, stricter rules for JSHint
This commit is contained in:
parent
2ec093a54c
commit
c9e46a09d8
4 changed files with 80 additions and 6 deletions
4
.hound.yml
Normal file
4
.hound.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
java_script:
|
||||
enabled: true
|
||||
config_file: config/.jshint.json
|
||||
ignore_file: config/.jshint_ignore
|
||||
65
config/.jshint.json
Normal file
65
config/.jshint.json
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
"bitwise": false,
|
||||
"camelcase": false,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"forin": true,
|
||||
"freeze": true,
|
||||
"immed": true,
|
||||
"indent": 2,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"noempty": true,
|
||||
"nonbsp": true,
|
||||
"nonew": false,
|
||||
"notypeof": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
|
||||
"asi": false,
|
||||
"boss": false,
|
||||
"browser": true,
|
||||
"devel": true,
|
||||
"eqnull": true,
|
||||
"evil": false,
|
||||
"expr": false,
|
||||
"jasmine": true,
|
||||
"jquery": true,
|
||||
"lastsemic": true,
|
||||
"laxbreak": false,
|
||||
"laxcomma": false,
|
||||
"loopfunc": false,
|
||||
"scripturl": false,
|
||||
"sub": false,
|
||||
"supernew": true,
|
||||
|
||||
"predef": [
|
||||
"_",
|
||||
"Backbone",
|
||||
"gon",
|
||||
"Handlebars",
|
||||
"HandlebarsTemplates",
|
||||
"ImagePaths",
|
||||
"jsxc",
|
||||
"MBP",
|
||||
"Routes",
|
||||
"OSM",
|
||||
"parse_url",
|
||||
"punycode",
|
||||
"qq",
|
||||
|
||||
"loginAs",
|
||||
"logout",
|
||||
"spec",
|
||||
"context",
|
||||
"factory",
|
||||
"stubView",
|
||||
"exports",
|
||||
|
||||
"app",
|
||||
"Diaspora",
|
||||
"Mentions",
|
||||
"PosixBracketExpressions"
|
||||
]
|
||||
}
|
||||
5
config/.jshint_ignore
Normal file
5
config/.jshint_ignore
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
vendor/assets/javascripts/**.js
|
||||
lib/assets/javascripts/fileuploader-custom.js
|
||||
lib/assets/javascripts/jquery.autoresize.js
|
||||
lib/assets/javascripts/jquery.mentionsInput.js
|
||||
lib/assets/javascripts/markdown-it-diaspora-linkify.js
|
||||
|
|
@ -9,14 +9,14 @@ options:
|
|||
# enforcing options
|
||||
bitwise: false
|
||||
camelcase: false
|
||||
curly: false
|
||||
curly: true
|
||||
eqeqeq: true
|
||||
forin: true
|
||||
freeze: true
|
||||
immed: true
|
||||
indent: 2
|
||||
latedef: true
|
||||
newcap: false
|
||||
newcap: true
|
||||
noarg: true
|
||||
noempty: true
|
||||
nonbsp: true
|
||||
|
|
@ -32,15 +32,15 @@ options:
|
|||
devel: true
|
||||
eqnull: true
|
||||
evil: false
|
||||
expr: true
|
||||
expr: false
|
||||
jasmine: true
|
||||
jquery: true
|
||||
lastsemic: true
|
||||
laxbreak: true
|
||||
laxcomma: true
|
||||
laxbreak: false
|
||||
laxcomma: false
|
||||
loopfunc: false
|
||||
scripturl: false
|
||||
sub: true
|
||||
sub: false
|
||||
supernew: true
|
||||
|
||||
globals:
|
||||
|
|
|
|||
Loading…
Reference in a new issue