eslint no-trailing spaces

master
Evgeny Poberezkin 2016-02-26 20:25:15 +00:00
parent 545cfcb187
commit 503b427b7f
3 changed files with 4 additions and 3 deletions

View File

@ -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" ],

View File

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

View File

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