Unverified Commit d06eec37 authored by XhmikosR's avatar XhmikosR Committed by GitHub
Browse files

Minor lint tweaks. (#29328)

parent e99625c0
Showing with 6 additions and 8 deletions
+6 -8
...@@ -23,8 +23,7 @@ export const clearFixture = () => { ...@@ -23,8 +23,7 @@ export const clearFixture = () => {
fixtureEl.innerHTML = '' fixtureEl.innerHTML = ''
} }
export const createEvent = (eventName, params) => { export const createEvent = (eventName, params = {}) => {
params = params || {}
const e = document.createEvent('Event') const e = document.createEvent('Event')
e.initEvent(eventName, Boolean(params.bubbles), Boolean(params.cancelable)) e.initEvent(eventName, Boolean(params.bubbles), Boolean(params.cancelable))
......
/* eslint-env node */ /* eslint-env node */
/* eslint no-process-env: 0 */
const path = require('path') const path = require('path')
const ip = require('ip') const ip = require('ip')
const babel = require('rollup-plugin-babel')
const istanbul = require('rollup-plugin-istanbul')
const resolve = require('rollup-plugin-node-resolve')
const { const {
browsers, browsers,
browsersKeys browsersKeys
} = require('./browsers') } = 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 { env } = process
const browserStack = env.BROWSER === 'true' const browserStack = env.BROWSER === 'true'
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
"js-compile-bundle": "rollup --environment BUNDLE:true --config build/rollup.config.js --sourcemap", "js-compile-bundle": "rollup --environment BUNDLE:true --config build/rollup.config.js --sourcemap",
"js-compile-plugins": "node build/build-plugins.js", "js-compile-plugins": "node build/build-plugins.js",
"js-lint": "npm-run-all --continue-on-error --parallel js-lint-*", "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-lint-docs": "eslint --cache --cache-location .cache/.eslintcache site/",
"js-minify": "npm-run-all --parallel js-minify-main js-minify-docs", "js-minify": "npm-run-all --parallel js-minify-main js-minify-docs",
"js-minify-main": "npm-run-all js-minify-standalone* js-minify-bundle", "js-minify-main": "npm-run-all js-minify-standalone* js-minify-bundle",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment