Skip to content

Commit 503b427

Browse files
committed
eslint no-trailing spaces
1 parent 545cfcb commit 503b427

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"rules": {
33
"indent": [ 2, 2, {"SwitchCase": 1} ],
4+
"no-trailing-spaces": 2,
45
"quotes": [ 2, "single", "avoid-escape" ],
56
"linebreak-style": [ 2, "unix" ],
67
"semi": [ 2, "always" ],

lib/compile/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function compile(schema, root, localRefs, baseId) {
2626
/* eslint no-shadow: 0 */
2727
var self = this
2828
, opts = this._opts
29-
, refVal = [ undefined ]
29+
, refVal = [ undefined ]
3030
, refs = {}
3131
, patterns = []
3232
, patternsHash = {}

lib/compile/resolve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function resolve(compile, root, ref) {
2828
if (this._refs[refVal]) refVal = this._refs[refVal];
2929
else return resolve.call(this, compile, root, refVal);
3030
}
31-
31+
3232
refVal = refVal || this._schemas[ref];
3333
if (refVal instanceof SchemaObject) {
3434
return inlineRef(refVal.schema, this._opts.inlineRefs)
@@ -138,7 +138,7 @@ var SIMPLE_INLINED = util.toHash([
138138
'maxItems', 'minItems',
139139
'maximum', 'minimum',
140140
'uniqueItems', 'multipleOf',
141-
'required', 'enum'
141+
'required', 'enum'
142142
]);
143143
function inlineRef(schema, limit) {
144144
if (limit === false) return false;

0 commit comments

Comments
 (0)