From d06eec372ad4d9458ee941a997bc9d1da3fe00e5 Mon Sep 17 00:00:00 2001 From: XhmikosR <xhmikosr@gmail.com> Date: Thu, 29 Aug 2019 16:20:49 +0300 Subject: [PATCH] Minor lint tweaks. (#29328) --- js/tests/helpers/fixture.js | 3 +-- js/tests/karma.conf.js | 9 ++++----- package.json | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/js/tests/helpers/fixture.js b/js/tests/helpers/fixture.js index 53fef454c4..0bfc26f468 100644 --- a/js/tests/helpers/fixture.js +++ b/js/tests/helpers/fixture.js @@ -23,8 +23,7 @@ export const clearFixture = () => { fixtureEl.innerHTML = '' } -export const createEvent = (eventName, params) => { - params = params || {} +export const createEvent = (eventName, params = {}) => { const e = document.createEvent('Event') e.initEvent(eventName, Boolean(params.bubbles), Boolean(params.cancelable)) diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js index 5d4b6ed1de..06c594bceb 100644 --- a/js/tests/karma.conf.js +++ b/js/tests/karma.conf.js @@ -1,15 +1,14 @@ /* eslint-env node */ -/* eslint no-process-env: 0 */ - const path = require('path') const ip = require('ip') +const babel = require('rollup-plugin-babel') +const istanbul = require('rollup-plugin-istanbul') +const resolve = require('rollup-plugin-node-resolve') + const { browsers, browsersKeys } = require('./browsers') -const babel = require('rollup-plugin-babel') -const istanbul = require('rollup-plugin-istanbul') -const resolve = require('rollup-plugin-node-resolve') const { env } = process const browserStack = env.BROWSER === 'true' diff --git a/package.json b/package.json index 054abbb6d8..035711a512 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "js-compile-bundle": "rollup --environment BUNDLE:true --config build/rollup.config.js --sourcemap", "js-compile-plugins": "node build/build-plugins.js", "js-lint": "npm-run-all --continue-on-error --parallel js-lint-*", - "js-lint-main": "eslint --cache --cache-location .cache/.eslintcache js/src js/tests build/", + "js-lint-main": "eslint --cache --cache-location .cache/.eslintcache js/ build/", "js-lint-docs": "eslint --cache --cache-location .cache/.eslintcache site/", "js-minify": "npm-run-all --parallel js-minify-main js-minify-docs", "js-minify-main": "npm-run-all js-minify-standalone* js-minify-bundle", -- GitLab