eslint-migration - disable warnings/errors

Disable warnings and errors on initial code
empty functions/require
remove transations stub from spec test
This commit is contained in:
Yuri Cherepanov
2019-11-18 01:24:07 +02:00
parent 3c1f9f6caa
commit 99e7ec00bf
9 changed files with 17 additions and 16 deletions

View File

@@ -1,8 +1,11 @@
/* eslint "@typescript-eslint/no-var-requires": 0 */
const Application = require('spectron').Application;
/* eslint "@typescript-eslint/no-var-requires": 0 */
const electronPath = require('electron'); // Require Electron from the binaries included in node_modules.
/* eslint "@typescript-eslint/no-var-requires": 0 */
const path = require('path');
export default function setup() {
export default function setup(): void {
beforeEach(async function () {
this.app = new Application({
// Your electron path can be any binary

View File

@@ -1,4 +1,4 @@
import {expect, assert} from 'chai';
import {expect} from 'chai';
import {SpectronClient} from 'spectron';
import commonSetup from './common-setup';
@@ -6,11 +6,13 @@ import commonSetup from './common-setup';
describe('angular-electron App', function () {
commonSetup.apply(this);
/* eslint "@typescript-eslint/no-explicit-any": 0 */
let browser: any;
let client: SpectronClient;
beforeEach(function () {
client = this.app.client;
/* eslint "@typescript-eslint/no-explicit-any": 0 */
browser = client as any;
});