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: globals:
sjcl: false sjcl: false
DOMPurify: false DOMPurify: false
after: true
before: true
cleanup: true
describe: false
it: false
jsc: false
jsdom: true
# http://eslint.org/docs/rules/ # http://eslint.org/docs/rules/
rules: rules:
@ -187,7 +194,9 @@ rules:
operator-linebreak: 0 operator-linebreak: 0
padded-blocks: 0 padded-blocks: 0
quote-props: 0 quote-props: 0
quotes: 0 quotes:
- error
- single
require-jsdoc: 0 require-jsdoc: 0
semi-spacing: 0 semi-spacing: 0
semi: 0 semi: 0

View File

@ -9,7 +9,7 @@
"latedef": "nofunc", "latedef": "nofunc",
"maxcomplexity": 25, "maxcomplexity": 25,
"maxdepth": 3, "maxdepth": 3,
"maxparams": 3, "maxparams": 4,
"maxstatements": 100, "maxstatements": 100,
"noarg": true, "noarg": true,
"nonbsp": true, "nonbsp": true,
@ -25,9 +25,19 @@
"DOMPurify": false "DOMPurify": false
}, },
"predef": { "predef": {
"after": true,
"before": true,
"cleanup": true, "cleanup": true,
"describe": false,
"document": true,
"fs": false,
"global": true,
"exports": true,
"it": false,
"jsc": false, "jsc": false,
"jsdom": true "jsdom": true,
"require": false,
"window": true
} }
} }