mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
tuning ESlint & JSHint
This commit is contained in:
parent
f179e75e72
commit
869198b8dd
11
.eslintrc
11
.eslintrc
|
@ -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
|
||||||
|
|
14
.jshintrc
14
.jshintrc
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user