mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
Fix new lint issues
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
@@ -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])
|
||||
|
||||
@@ -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,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"]'))
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user