2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-18 12:39:41 +03:00

Fix new lint issues

This commit is contained in:
XhmikosR
2021-08-26 19:12:28 +03:00
parent caa0592bee
commit 076af07fc0
11 changed files with 14 additions and 6 deletions
+1
View File
@@ -1,6 +1,7 @@
'use strict'
const pkg = require('../package.json')
const year = new Date().getFullYear()
function getBanner(pluginFilename) {
+2 -1
View File
@@ -10,13 +10,14 @@
'use strict'
const path = require('path')
const process = require('process')
const rollup = require('rollup')
const glob = require('glob')
const { babel } = require('@rollup/plugin-babel')
const banner = require('./banner.js')
const srcPath = path.resolve(__dirname, '../js/src/')
const jsFiles = glob.sync(srcPath + '/**/*.js')
const jsFiles = glob.sync(`${srcPath}/**/*.js`)
// Array which holds the resolved plugins
const resolvedPlugins = []
+1
View File
@@ -11,6 +11,7 @@
const fs = require('fs').promises
const path = require('path')
const process = require('process')
const globby = require('globby')
const VERBOSE = process.argv.includes('--verbose')
+1
View File
@@ -1,6 +1,7 @@
'use strict'
const path = require('path')
const process = require('process')
const { babel } = require('@rollup/plugin-babel')
const { nodeResolve } = require('@rollup/plugin-node-resolve')
const replace = require('@rollup/plugin-replace')
+1
View File
@@ -10,6 +10,7 @@
'use strict'
const { execFile, spawn } = require('child_process')
const process = require('process')
const vnu = require('vnu-jar')
execFile('java', ['-version'], (error, stdout, stderr) => {
+1
View File
@@ -18,6 +18,7 @@ import Tab from './src/tab'
import Toast from './src/toast'
import Tooltip from './src/tooltip'
// eslint-disable-next-line import/no-anonymous-default-export
export default {
Alert,
Button,
+1
View File
@@ -11,6 +11,7 @@
const elementMap = new Map()
// eslint-disable-next-line import/no-anonymous-default-export
export default {
set(element, key, instance) {
if (!elementMap.has(element)) {
+2 -2
View File
@@ -120,8 +120,8 @@ class ScrollSpy extends BaseComponent {
return null
})
.filter(item => item)
.sort((a, b) => a[0] - b[0])
.filter(item => item)
.sort((a, b) => a[0] - b[0])
for (const item of targets) {
this._offsets.push(item[0])
+1 -1
View File
@@ -5,9 +5,9 @@
* --------------------------------------------------------------------------
*/
import { DefaultAllowlist, sanitizeHtml } from './sanitizer'
import { getElement, isElement, typeCheckConfig } from '../util/index'
import SelectorEngine from '../dom/selector-engine'
import { DefaultAllowlist, sanitizeHtml } from './sanitizer'
/**
* Constants
+1 -1
View File
@@ -1,5 +1,5 @@
import Tooltip from '../../dist/tooltip'
import '../../dist/carousel'
import '../../dist/carousel' // eslint-disable-line import/no-unassigned-import
window.addEventListener('load', () => {
[].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]'))
+2 -1
View File
@@ -3,6 +3,7 @@
'use strict'
const path = require('path')
const process = require('process')
const ip = require('ip')
const { babel } = require('@rollup/plugin-babel')
const istanbul = require('rollup-plugin-istanbul')
@@ -105,7 +106,7 @@ if (BROWSERSTACK) {
conf.browserStack = {
username: ENV.BROWSER_STACK_USERNAME,
accessKey: ENV.BROWSER_STACK_ACCESS_KEY,
build: `bootstrap-${ENV.GITHUB_SHA ? ENV.GITHUB_SHA.slice(0, 7) + '-' : ''}${new Date().toISOString()}`,
build: `bootstrap-${ENV.GITHUB_SHA ? `${ENV.GITHUB_SHA.slice(0, 7)}-` : ''}${new Date().toISOString()}`,
project: 'Bootstrap',
retryLimit: 2
}