mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
CB-12895 : added .eslintrc files to set up jasmine environment
This commit is contained in:
parent
d83d49d83b
commit
ac4ac935f6
12
spec/e2e/.eslintrc.yml
Normal file
12
spec/e2e/.eslintrc.yml
Normal 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
|
@ -16,7 +16,6 @@
|
|||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
/* eslint-env jasmine */
|
|
||||||
|
|
||||||
var actions = require('./helpers/projectActions.js');
|
var actions = require('./helpers/projectActions.js');
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
/* eslint-env jasmine */
|
|
||||||
|
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var actions = require('./helpers/projectActions.js');
|
var actions = require('./helpers/projectActions.js');
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
/* eslint-env jasmine */
|
|
||||||
|
|
||||||
var actions = require('./helpers/projectActions.js');
|
var actions = require('./helpers/projectActions.js');
|
||||||
var shell = require('shelljs');
|
var shell = require('shelljs');
|
||||||
|
12
spec/unit/.eslintrc.yml
Normal file
12
spec/unit/.eslintrc.yml
Normal 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
|
@ -16,7 +16,6 @@
|
|||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
/* eslint-env jasmine */
|
|
||||||
|
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var AndroidProject = require('../../bin/templates/cordova/lib/AndroidProject');
|
var AndroidProject = require('../../bin/templates/cordova/lib/AndroidProject');
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
|
|
||||||
/* eslint-env jasmine */
|
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var AndroidStudio = require('../../bin/templates/cordova/lib/AndroidStudio');
|
var AndroidStudio = require('../../bin/templates/cordova/lib/AndroidStudio');
|
||||||
|
|
||||||
|
@ -17,9 +17,6 @@
|
|||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* jshint node:true */
|
|
||||||
/* eslint-env jasmine */
|
|
||||||
|
|
||||||
var Q = require('q');
|
var Q = require('q');
|
||||||
var os = require('os');
|
var os = require('os');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
/* jshint laxcomma:true */
|
|
||||||
/* eslint-env jasmine */
|
|
||||||
|
|
||||||
var android_sdk = require('../../bin/templates/cordova/lib/android_sdk');
|
var android_sdk = require('../../bin/templates/cordova/lib/android_sdk');
|
||||||
var superspawn = require('cordova-common').superspawn;
|
var superspawn = require('cordova-common').superspawn;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* eslint-env jasmine */
|
|
||||||
var Gradle_builder = require('../../../bin/templates/cordova/lib/builders/GradleBuilder.js');
|
var Gradle_builder = require('../../../bin/templates/cordova/lib/builders/GradleBuilder.js');
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var superspawn = require('cordova-common').superspawn;
|
var superspawn = require('cordova-common').superspawn;
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
/* jshint laxcomma:true */
|
|
||||||
/* eslint-env jasmine */
|
|
||||||
|
|
||||||
var check_reqs = require('../../bin/templates/cordova/lib/check_reqs');
|
var check_reqs = require('../../bin/templates/cordova/lib/check_reqs');
|
||||||
var android_sdk = require('../../bin/templates/cordova/lib/android_sdk');
|
var android_sdk = require('../../bin/templates/cordova/lib/android_sdk');
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
/* jshint laxcomma:true */
|
|
||||||
/* eslint-env jasmine */
|
|
||||||
|
|
||||||
var create = require('../../bin/lib/create');
|
var create = require('../../bin/lib/create');
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
/* eslint-env jasmine */
|
|
||||||
|
|
||||||
var emu = require('../../bin/templates/cordova/lib/emulator');
|
var emu = require('../../bin/templates/cordova/lib/emulator');
|
||||||
var superspawn = require('cordova-common').superspawn;
|
var superspawn = require('cordova-common').superspawn;
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
* under the License.
|
* under the License.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/* eslint-env jasmine */
|
|
||||||
|
|
||||||
var rewire = require('rewire');
|
var rewire = require('rewire');
|
||||||
var common = rewire('../../../bin/templates/cordova/lib/pluginHandlers');
|
var common = rewire('../../../bin/templates/cordova/lib/pluginHandlers');
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
/* eslint-env jasmine */
|
|
||||||
|
|
||||||
var rewire = require('rewire');
|
var rewire = require('rewire');
|
||||||
var common = rewire('../../../bin/templates/cordova/lib/pluginHandlers');
|
var common = rewire('../../../bin/templates/cordova/lib/pluginHandlers');
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
*/
|
*/
|
||||||
/* eslint-env jasmine */
|
|
||||||
|
|
||||||
var rewire = require('rewire');
|
var rewire = require('rewire');
|
||||||
var run = rewire('../../bin/templates/cordova/lib/run');
|
var run = rewire('../../bin/templates/cordova/lib/run');
|
||||||
|
Loading…
Reference in New Issue
Block a user