eslint no-trailing spaces
parent
545cfcb187
commit
503b427b7f
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"rules": {
|
||||
"indent": [ 2, 2, {"SwitchCase": 1} ],
|
||||
"no-trailing-spaces": 2,
|
||||
"quotes": [ 2, "single", "avoid-escape" ],
|
||||
"linebreak-style": [ 2, "unix" ],
|
||||
"semi": [ 2, "always" ],
|
||||
|
|
|
@ -26,7 +26,7 @@ function compile(schema, root, localRefs, baseId) {
|
|||
/* eslint no-shadow: 0 */
|
||||
var self = this
|
||||
, opts = this._opts
|
||||
, refVal = [ undefined ]
|
||||
, refVal = [ undefined ]
|
||||
, refs = {}
|
||||
, patterns = []
|
||||
, patternsHash = {}
|
||||
|
|
|
@ -28,7 +28,7 @@ function resolve(compile, root, ref) {
|
|||
if (this._refs[refVal]) refVal = this._refs[refVal];
|
||||
else return resolve.call(this, compile, root, refVal);
|
||||
}
|
||||
|
||||
|
||||
refVal = refVal || this._schemas[ref];
|
||||
if (refVal instanceof SchemaObject) {
|
||||
return inlineRef(refVal.schema, this._opts.inlineRefs)
|
||||
|
@ -138,7 +138,7 @@ var SIMPLE_INLINED = util.toHash([
|
|||
'maxItems', 'minItems',
|
||||
'maximum', 'minimum',
|
||||
'uniqueItems', 'multipleOf',
|
||||
'required', 'enum'
|
||||
'required', 'enum'
|
||||
]);
|
||||
function inlineRef(schema, limit) {
|
||||
if (limit === false) return false;
|
||||
|
|
Loading…
Reference in New Issue