Fix linter issues (#1132)

This commit is contained in:
Yavor Georgiev 2017-07-10 16:53:00 +02:00 committed by GitHub
parent 1ba9b434b4
commit ab29ac4490
8 changed files with 48 additions and 4 deletions

View File

@ -1,6 +1,7 @@
/core*/
/docs/jsdoc-template/
/docs/output/
/docs/plugins/
build/
node_modules/

View File

@ -8,10 +8,11 @@
"rules": {
"comma-dangle": 0,
"no-empty": 0,
"no-console": 0,
"no-unused-vars": [
"warn", {
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
"args": "none"
}
],
"strict": [2, "global"]

View File

@ -1,4 +1,3 @@
import {stringify} from 'ini';
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm Inc.

View File

@ -33,6 +33,7 @@ function checkTypes(args, types) {
}
}
/* global fetch */
const performFetch = typeof fetch === 'undefined' ? node_require('node-fetch') : fetch;
const url_parse = require('url-parse');

View File

@ -1,4 +1,23 @@
#!/usr/bin/env node
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////
'use strict';
process.stdin.resume();
process.stdin.setEncoding('utf8');

View File

@ -1,3 +1,23 @@
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////
'use strict';
var shell = require("shelljs");
shell.set("-e");

View File

@ -22,6 +22,7 @@
"no-magic-numbers": "off",
"jasmine/no-spec-dupes": ["error", "branch"],
"jasmine/no-suite-dupes": ["error", "branch"],
"no-console": "off"
"no-console": "off",
"no-unused-vars": "off"
}
}

View File

@ -20,6 +20,8 @@
'use strict';
/* global REALM_MODULE_PATH */
const Realm = require('realm');
const TestCase = require('./asserts');
@ -120,7 +122,7 @@ module.exports = {
catch (e) {
reject(e)
}
};
}
// Let the error handler trigger our checks when the access token was refreshed.
postTokenRefreshChecks._notifyOnAccessTokenRefreshed = accessTokenRefreshed;