0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-03-15 15:29:22 +01:00

Fix the new lint issues

This commit is contained in:
XhmikosR 2021-08-26 19:12:28 +03:00
parent e5fe48e3ff
commit ada602d6ed
8 changed files with 8 additions and 1 deletions

View File

@ -7,6 +7,7 @@
*/
import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'
import { babel } from '@rollup/plugin-babel'
import { globby } from 'globby'

View File

@ -4,6 +4,7 @@ const mapConfig = {
sourcesContent: true
}
// eslint-disable-next-line import/no-anonymous-default-export
export default context => {
return {
map: context.file.dirname.includes('examples') ? false : mapConfig,

View File

@ -7,6 +7,7 @@
*/
import { execFile, spawn } from 'node:child_process'
import process from 'node:process'
import vnu from 'vnu-jar'
execFile('java', ['-version'], (error, stdout, stderr) => {

View File

@ -18,6 +18,7 @@ import Tab from './src/tab.js'
import Toast from './src/toast.js'
import Tooltip from './src/tooltip.js'
// eslint-disable-next-line import/no-anonymous-default-export
export default {
Alert,
Button,

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

View File

@ -1,4 +1,4 @@
/* eslint-disable import/extensions, import/no-unassigned-import */
/* eslint-disable import/extensions, n/file-extension-in-import, import/no-unassigned-import */
import Tooltip from '../../dist/tooltip'
import '../../dist/carousel'

View File

@ -1,6 +1,7 @@
'use strict'
const path = require('node:path')
const process = require('node:process')
const ip = require('ip')
const { babel } = require('@rollup/plugin-babel')
const istanbul = require('rollup-plugin-istanbul')

View File

@ -4,6 +4,7 @@ const path = require('node:path')
const runnerPath = path.join(__dirname, 'runner').replace(/\\/g, '/')
// eslint-disable-next-line n/no-deprecated-api
require.extensions['.scss'] = (module, filename) => {
const normalizedFilename = filename.replace(/\\/g, '/')