CB-12895 : updated .eslintrc file in spec dir and set jasmine true and removed root is true

This commit is contained in:
Audrey So 2017-06-19 10:57:12 -07:00
parent ac4ac935f6
commit 55d7cf3865
4 changed files with 9 additions and 32 deletions

View File

@ -109,12 +109,12 @@ module.exports.get_gradle_wrapper = function () {
} else { ++i; }
}
} else if (module.exports.isWindows()) {
var result = child_process.spawnSync(path.join(__dirname,'getASPath.bat'));
//console.log('result.stdout =' + result.stdout.toString());
//console.log('result.stderr =' + result.stderr.toString());
if(result.stderr.toString().length > 0) {
var result = child_process.spawnSync(path.join(__dirname, 'getASPath.bat'));
// console.log('result.stdout =' + result.stdout.toString());
// console.log('result.stderr =' + result.stderr.toString());
if (result.stderr.toString().length > 0) {
var androidPath = path.join(process.env['ProgramFiles'], 'Android') + '/';
if (fs.existsSync(androidPath)) {
program_dir = fs.readdirSync(androidPath);
@ -125,12 +125,11 @@ module.exports.get_gradle_wrapper = function () {
} else { ++i; }
}
}
}
else {
} else {
// console.log('got android studio path from registry');
// remove the (os independent) new line char at the end of stdout
// add gradle to match the above.
androidStudioPath = path.join(result.stdout.toString().split('\r\n')[0],'gradle');
androidStudioPath = path.join(result.stdout.toString().split('\r\n')[0], 'gradle');
}
}

2
spec/.eslintrc.yml Normal file
View File

@ -0,0 +1,2 @@
env:
jasmine: true

View File

@ -1,12 +0,0 @@
env:
jasmine: true
root: true
extends: semistandard
rules:
indent:
- error
- 4
camelcase: off
padded-blocks: off
operator-linebreak: off
no-throw-literal: off

View File

@ -1,12 +0,0 @@
env:
jasmine: true
root: true
extends: semistandard
rules:
indent:
- error
- 4
camelcase: off
padded-blocks: off
operator-linebreak: off
no-throw-literal: off