1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Minor lint tweaks. (#29328)

This commit is contained in:
XhmikosR 2019-08-29 16:20:49 +03:00 committed by GitHub
parent e99625c088
commit d06eec372a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 8 deletions

View file

@ -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))

View file

@ -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'

View file

@ -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",