tuning ESlint & JSHint

This commit is contained in:
El RIDO 2018-01-06 14:20:05 +01:00
parent f179e75e72
commit 869198b8dd
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92
2 changed files with 22 additions and 3 deletions

View File

@ -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

View File

@ -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
}
}