tuning ESlint & JSHint
This commit is contained in:
parent
f179e75e72
commit
869198b8dd
2 changed files with 22 additions and 3 deletions
11
.eslintrc
11
.eslintrc
|
@ -12,6 +12,13 @@ env:
|
|||
globals:
|
||||
sjcl: false
|
||||
DOMPurify: false
|
||||
after: true
|
||||
before: true
|
||||
cleanup: true
|
||||
describe: false
|
||||
it: false
|
||||
jsc: false
|
||||
jsdom: true
|
||||
|
||||
# http://eslint.org/docs/rules/
|
||||
rules:
|
||||
|
@ -187,7 +194,9 @@ rules:
|
|||
operator-linebreak: 0
|
||||
padded-blocks: 0
|
||||
quote-props: 0
|
||||
quotes: 0
|
||||
quotes:
|
||||
- error
|
||||
- single
|
||||
require-jsdoc: 0
|
||||
semi-spacing: 0
|
||||
semi: 0
|
||||
|
|
14
.jshintrc
14
.jshintrc
|
@ -9,7 +9,7 @@
|
|||
"latedef": "nofunc",
|
||||
"maxcomplexity": 25,
|
||||
"maxdepth": 3,
|
||||
"maxparams": 3,
|
||||
"maxparams": 4,
|
||||
"maxstatements": 100,
|
||||
"noarg": true,
|
||||
"nonbsp": true,
|
||||
|
@ -25,9 +25,19 @@
|
|||
"DOMPurify": false
|
||||
},
|
||||
"predef": {
|
||||
"after": true,
|
||||
"before": true,
|
||||
"cleanup": true,
|
||||
"describe": false,
|
||||
"document": true,
|
||||
"fs": false,
|
||||
"global": true,
|
||||
"exports": true,
|
||||
"it": false,
|
||||
"jsc": false,
|
||||
"jsdom": true
|
||||
"jsdom": true,
|
||||
"require": false,
|
||||
"window": true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue