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:
@@ -1,6 +1,7 @@
|
||||
'use strict'
|
||||
|
||||
const pkg = require('../package.json')
|
||||
|
||||
const year = new Date().getFullYear()
|
||||
|
||||
function getBanner(pluginFilename) {
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
@@ -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,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')
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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