CB-12895 : added .eslintrc files to set up jasmine environment

This commit is contained in:
Audrey So 2017-06-19 10:21:43 -07:00
parent d83d49d83b
commit ac4ac935f6
16 changed files with 25 additions and 19 deletions

12
spec/e2e/.eslintrc.yml Normal file
View File

@ -0,0 +1,12 @@
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

@ -16,7 +16,6 @@
specific language governing permissions and limitations
under the License.
*/
/* eslint-env jasmine */
var actions = require('./helpers/projectActions.js');

View File

@ -16,7 +16,6 @@
specific language governing permissions and limitations
under the License.
*/
/* eslint-env jasmine */
var path = require('path');
var actions = require('./helpers/projectActions.js');

View File

@ -16,7 +16,6 @@
specific language governing permissions and limitations
under the License.
*/
/* eslint-env jasmine */
var actions = require('./helpers/projectActions.js');
var shell = require('shelljs');

12
spec/unit/.eslintrc.yml Normal file
View File

@ -0,0 +1,12 @@
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

@ -16,7 +16,6 @@
specific language governing permissions and limitations
under the License.
*/
/* eslint-env jasmine */
var path = require('path');
var AndroidProject = require('../../bin/templates/cordova/lib/AndroidProject');

View File

@ -1,5 +1,4 @@
/* eslint-env jasmine */
var path = require('path');
var AndroidStudio = require('../../bin/templates/cordova/lib/AndroidStudio');

View File

@ -17,9 +17,6 @@
under the License.
*/
/* jshint node:true */
/* eslint-env jasmine */
var Q = require('q');
var os = require('os');
var path = require('path');

View File

@ -16,8 +16,6 @@
specific language governing permissions and limitations
under the License.
*/
/* jshint laxcomma:true */
/* eslint-env jasmine */
var android_sdk = require('../../bin/templates/cordova/lib/android_sdk');
var superspawn = require('cordova-common').superspawn;

View File

@ -1,4 +1,4 @@
/* eslint-env jasmine */
var Gradle_builder = require('../../../bin/templates/cordova/lib/builders/GradleBuilder.js');
var fs = require('fs');
var superspawn = require('cordova-common').superspawn;

View File

@ -16,8 +16,6 @@
specific language governing permissions and limitations
under the License.
*/
/* jshint laxcomma:true */
/* eslint-env jasmine */
var check_reqs = require('../../bin/templates/cordova/lib/check_reqs');
var android_sdk = require('../../bin/templates/cordova/lib/android_sdk');

View File

@ -16,8 +16,6 @@
specific language governing permissions and limitations
under the License.
*/
/* jshint laxcomma:true */
/* eslint-env jasmine */
var create = require('../../bin/lib/create');

View File

@ -16,7 +16,6 @@
specific language governing permissions and limitations
under the License.
*/
/* eslint-env jasmine */
var emu = require('../../bin/templates/cordova/lib/emulator');
var superspawn = require('cordova-common').superspawn;

View File

@ -15,7 +15,6 @@
* under the License.
*
*/
/* eslint-env jasmine */
var rewire = require('rewire');
var common = rewire('../../../bin/templates/cordova/lib/pluginHandlers');

View File

@ -16,7 +16,6 @@
specific language governing permissions and limitations
under the License.
*/
/* eslint-env jasmine */
var rewire = require('rewire');
var common = rewire('../../../bin/templates/cordova/lib/pluginHandlers');

View File

@ -16,7 +16,6 @@
specific language governing permissions and limitations
under the License.
*/
/* eslint-env jasmine */
var rewire = require('rewire');
var run = rewire('../../bin/templates/cordova/lib/run');