From 8edb77a4e54aff61feb541b2e7b8e5cd6705c51b Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 26 Aug 2021 19:12:28 +0300 Subject: Fix the new lint issues --- build/banner.js | 1 + build/build-plugins.js | 1 + build/change-version.js | 1 + build/rollup.config.js | 1 + build/vnu-jar.js | 1 + js/index.umd.js | 1 + js/src/dom/data.js | 1 + js/src/util/backdrop.js | 2 +- js/src/util/component-functions.js | 2 +- js/src/util/config.js | 2 +- js/src/util/swipe.js | 2 +- js/src/util/template-factory.js | 4 ++-- js/tests/integration/bundle-modularity.js | 4 ++-- js/tests/karma.conf.js | 3 ++- js/tests/unit/alert.spec.js | 6 ++--- js/tests/unit/base-component.spec.js | 8 +++---- js/tests/unit/button.spec.js | 4 ++-- js/tests/unit/carousel.spec.js | 10 ++++----- js/tests/unit/collapse.spec.js | 6 ++--- js/tests/unit/dom/data.spec.js | 4 ++-- js/tests/unit/dom/event-handler.spec.js | 6 ++--- js/tests/unit/dom/manipulator.spec.js | 4 ++-- js/tests/unit/dom/selector-engine.spec.js | 4 ++-- js/tests/unit/dropdown.spec.js | 8 +++---- js/tests/unit/jquery.spec.js | 26 +++++++++++----------- js/tests/unit/modal.spec.js | 8 +++---- js/tests/unit/offcanvas.spec.js | 10 ++++----- js/tests/unit/popover.spec.js | 6 ++--- js/tests/unit/scrollspy.spec.js | 6 ++--- js/tests/unit/tab.spec.js | 4 ++-- js/tests/unit/toast.spec.js | 4 ++-- js/tests/unit/tooltip.spec.js | 8 +++---- js/tests/unit/util/backdrop.spec.js | 6 ++--- js/tests/unit/util/component-functions.spec.js | 6 ++--- js/tests/unit/util/config.spec.js | 4 ++-- js/tests/unit/util/focustrap.spec.js | 8 +++---- js/tests/unit/util/index.spec.js | 6 ++--- js/tests/unit/util/sanitizer.spec.js | 2 +- js/tests/unit/util/scrollbar.spec.js | 6 ++--- js/tests/unit/util/swipe.spec.js | 8 +++---- js/tests/unit/util/template-factory.spec.js | 4 ++-- .../docs/5.2/examples/dashboard-rtl/dashboard.js | 14 ++++++------ .../docs/5.2/examples/dashboard/dashboard.js | 14 ++++++------ 43 files changed, 122 insertions(+), 114 deletions(-) diff --git a/build/banner.js b/build/banner.js index df82ff32ed..a022f1c485 100644 --- a/build/banner.js +++ b/build/banner.js @@ -1,6 +1,7 @@ 'use strict' const pkg = require('../package.json') + const year = new Date().getFullYear() function getBanner(pluginFilename) { diff --git a/build/build-plugins.js b/build/build-plugins.js index b6ce58df84..2aa7adb968 100644 --- a/build/build-plugins.js +++ b/build/build-plugins.js @@ -10,6 +10,7 @@ 'use strict' const path = require('node:path') +const process = require('process') const rollup = require('rollup') const globby = require('globby') const { babel } = require('@rollup/plugin-babel') diff --git a/build/change-version.js b/build/change-version.js index 57c5fdec88..3db3244e76 100644 --- a/build/change-version.js +++ b/build/change-version.js @@ -11,6 +11,7 @@ const fs = require('node:fs').promises const path = require('node:path') +const process = require('process') const globby = require('globby') const VERBOSE = process.argv.includes('--verbose') diff --git a/build/rollup.config.js b/build/rollup.config.js index f01918ebf2..8a99d5591f 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -1,6 +1,7 @@ 'use strict' const path = require('node:path') +const process = require('process') const { babel } = require('@rollup/plugin-babel') const { nodeResolve } = require('@rollup/plugin-node-resolve') const replace = require('@rollup/plugin-replace') diff --git a/build/vnu-jar.js b/build/vnu-jar.js index f29eeb7220..67cd2f283c 100644 --- a/build/vnu-jar.js +++ b/build/vnu-jar.js @@ -10,6 +10,7 @@ 'use strict' const { execFile, spawn } = require('node:child_process') +const process = require('process') const vnu = require('vnu-jar') execFile('java', ['-version'], (error, stdout, stderr) => { diff --git a/js/index.umd.js b/js/index.umd.js index 52793b14cd..93658773e1 100644 --- a/js/index.umd.js +++ b/js/index.umd.js @@ -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, diff --git a/js/src/dom/data.js b/js/src/dom/data.js index 76c5e0a29b..55d65e9f81 100644 --- a/js/src/dom/data.js +++ b/js/src/dom/data.js @@ -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)) { diff --git a/js/src/util/backdrop.js b/js/src/util/backdrop.js index 832ba745af..5bbb35da4c 100644 --- a/js/src/util/backdrop.js +++ b/js/src/util/backdrop.js @@ -6,8 +6,8 @@ */ import EventHandler from '../dom/event-handler.js' -import { execute, executeAfterTransition, getElement, reflow } from './index.js' import Config from './config.js' +import { execute, executeAfterTransition, getElement, reflow } from './index.js' /** * Constants diff --git a/js/src/util/component-functions.js b/js/src/util/component-functions.js index 6896faf569..cbae79fd65 100644 --- a/js/src/util/component-functions.js +++ b/js/src/util/component-functions.js @@ -6,8 +6,8 @@ */ import EventHandler from '../dom/event-handler.js' -import { isDisabled } from './index.js' import SelectorEngine from '../dom/selector-engine.js' +import { isDisabled } from './index.js' const enableDismissTrigger = (component, method = 'hide') => { const clickEvent = `click.dismiss${component.EVENT_KEY}` diff --git a/js/src/util/config.js b/js/src/util/config.js index 9417ab8f8c..0806425a1e 100644 --- a/js/src/util/config.js +++ b/js/src/util/config.js @@ -5,8 +5,8 @@ * -------------------------------------------------------------------------- */ -import { isElement, toType } from './index.js' import Manipulator from '../dom/manipulator.js' +import { isElement, toType } from './index.js' /** * Class definition diff --git a/js/src/util/swipe.js b/js/src/util/swipe.js index 3a9139cc07..6eafe9478c 100644 --- a/js/src/util/swipe.js +++ b/js/src/util/swipe.js @@ -5,8 +5,8 @@ * -------------------------------------------------------------------------- */ -import Config from './config.js' import EventHandler from '../dom/event-handler.js' +import Config from './config.js' import { execute } from './index.js' /** diff --git a/js/src/util/template-factory.js b/js/src/util/template-factory.js index 9cd12dcdbe..883f71d9e9 100644 --- a/js/src/util/template-factory.js +++ b/js/src/util/template-factory.js @@ -5,10 +5,10 @@ * -------------------------------------------------------------------------- */ -import { DefaultAllowlist, sanitizeHtml } from './sanitizer.js' -import { execute, getElement, isElement } from './index.js' import SelectorEngine from '../dom/selector-engine.js' +import { DefaultAllowlist, sanitizeHtml } from './sanitizer.js' import Config from './config.js' +import { execute, getElement, isElement } from './index.js' /** * Constants diff --git a/js/tests/integration/bundle-modularity.js b/js/tests/integration/bundle-modularity.js index 8546141b19..d8f6fc0df8 100644 --- a/js/tests/integration/bundle-modularity.js +++ b/js/tests/integration/bundle-modularity.js @@ -1,5 +1,5 @@ -import Tooltip from '../../dist/tooltip' -import '../../dist/carousel' +import Tooltip from '../../dist/tooltip.js' +import '../../dist/carousel.js' // eslint-disable-line import/no-unassigned-import window.addEventListener('load', () => { [].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]')) diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js index 11c6f30451..769ce283f6 100644 --- a/js/tests/karma.conf.js +++ b/js/tests/karma.conf.js @@ -3,12 +3,13 @@ 'use strict' const path = require('node:path') +const process = require('process') const ip = require('ip') const { babel } = require('@rollup/plugin-babel') const istanbul = require('rollup-plugin-istanbul') const { nodeResolve } = require('@rollup/plugin-node-resolve') const replace = require('@rollup/plugin-replace') -const { browsers } = require('./browsers') +const { browsers } = require('./browsers.js') const ENV = process.env const BROWSERSTACK = Boolean(ENV.BROWSERSTACK) diff --git a/js/tests/unit/alert.spec.js b/js/tests/unit/alert.spec.js index d3740c91ed..97cc3cc532 100644 --- a/js/tests/unit/alert.spec.js +++ b/js/tests/unit/alert.spec.js @@ -1,6 +1,6 @@ -import Alert from '../../src/alert' -import { getTransitionDurationFromElement } from '../../src/util/index' -import { clearFixture, getFixture, jQueryMock } from '../helpers/fixture' +import Alert from '../../src/alert.js' +import { getTransitionDurationFromElement } from '../../src/util/index.js' +import { clearFixture, getFixture, jQueryMock } from '../helpers/fixture.js' describe('Alert', () => { let fixtureEl diff --git a/js/tests/unit/base-component.spec.js b/js/tests/unit/base-component.spec.js index b2352d66bb..80033d6dca 100644 --- a/js/tests/unit/base-component.spec.js +++ b/js/tests/unit/base-component.spec.js @@ -1,7 +1,7 @@ -import BaseComponent from '../../src/base-component' -import { clearFixture, getFixture } from '../helpers/fixture' -import EventHandler from '../../src/dom/event-handler' -import { noop } from '../../src/util' +import BaseComponent from '../../src/base-component.js' +import { clearFixture, getFixture } from '../helpers/fixture.js' +import EventHandler from '../../src/dom/event-handler.js' +import { noop } from '../../src/util/index.js' class DummyClass extends BaseComponent { constructor(element) { diff --git a/js/tests/unit/button.spec.js b/js/tests/unit/button.spec.js index 09ed17efed..98821db7ee 100644 --- a/js/tests/unit/button.spec.js +++ b/js/tests/unit/button.spec.js @@ -1,5 +1,5 @@ -import Button from '../../src/button' -import { getFixture, clearFixture, jQueryMock } from '../helpers/fixture' +import Button from '../../src/button.js' +import { getFixture, clearFixture, jQueryMock } from '../helpers/fixture.js' describe('Button', () => { let fixtureEl diff --git a/js/tests/unit/carousel.spec.js b/js/tests/unit/carousel.spec.js index d951bd5ae0..c764acaef7 100644 --- a/js/tests/unit/carousel.spec.js +++ b/js/tests/unit/carousel.spec.js @@ -1,8 +1,8 @@ -import Carousel from '../../src/carousel' -import EventHandler from '../../src/dom/event-handler' -import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture' -import { isRTL, noop } from '../../src/util/index' -import Swipe from '../../src/util/swipe' +import Carousel from '../../src/carousel.js' +import EventHandler from '../../src/dom/event-handler.js' +import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture.js' +import { isRTL, noop } from '../../src/util/index.js' +import Swipe from '../../src/util/swipe.js' describe('Carousel', () => { const { Simulator, PointerEvent } = window diff --git a/js/tests/unit/collapse.spec.js b/js/tests/unit/collapse.spec.js index fa50ad361c..bcb84844dd 100644 --- a/js/tests/unit/collapse.spec.js +++ b/js/tests/unit/collapse.spec.js @@ -1,6 +1,6 @@ -import Collapse from '../../src/collapse' -import EventHandler from '../../src/dom/event-handler' -import { clearFixture, getFixture, jQueryMock } from '../helpers/fixture' +import Collapse from '../../src/collapse.js' +import EventHandler from '../../src/dom/event-handler.js' +import { clearFixture, getFixture, jQueryMock } from '../helpers/fixture.js' describe('Collapse', () => { let fixtureEl diff --git a/js/tests/unit/dom/data.spec.js b/js/tests/unit/dom/data.spec.js index e898cbba21..7e45a076cf 100644 --- a/js/tests/unit/dom/data.spec.js +++ b/js/tests/unit/dom/data.spec.js @@ -1,5 +1,5 @@ -import Data from '../../../src/dom/data' -import { getFixture, clearFixture } from '../../helpers/fixture' +import Data from '../../../src/dom/data.js' +import { getFixture, clearFixture } from '../../helpers/fixture.js' describe('Data', () => { const TEST_KEY = 'bs.test' diff --git a/js/tests/unit/dom/event-handler.spec.js b/js/tests/unit/dom/event-handler.spec.js index 623b9c160d..5d6e4db33f 100644 --- a/js/tests/unit/dom/event-handler.spec.js +++ b/js/tests/unit/dom/event-handler.spec.js @@ -1,6 +1,6 @@ -import EventHandler from '../../../src/dom/event-handler' -import { clearFixture, getFixture } from '../../helpers/fixture' -import { noop } from '../../../src/util' +import EventHandler from '../../../src/dom/event-handler.js' +import { clearFixture, getFixture } from '../../helpers/fixture.js' +import { noop } from '../../../src/util/index.js' describe('EventHandler', () => { let fixtureEl diff --git a/js/tests/unit/dom/manipulator.spec.js b/js/tests/unit/dom/manipulator.spec.js index 4561e2e46c..9d0be3218f 100644 --- a/js/tests/unit/dom/manipulator.spec.js +++ b/js/tests/unit/dom/manipulator.spec.js @@ -1,5 +1,5 @@ -import Manipulator from '../../../src/dom/manipulator' -import { clearFixture, getFixture } from '../../helpers/fixture' +import Manipulator from '../../../src/dom/manipulator.js' +import { clearFixture, getFixture } from '../../helpers/fixture.js' describe('Manipulator', () => { let fixtureEl diff --git a/js/tests/unit/dom/selector-engine.spec.js b/js/tests/unit/dom/selector-engine.spec.js index 905e25baec..8dd7b1f893 100644 --- a/js/tests/unit/dom/selector-engine.spec.js +++ b/js/tests/unit/dom/selector-engine.spec.js @@ -1,5 +1,5 @@ -import SelectorEngine from '../../../src/dom/selector-engine' -import { clearFixture, getFixture } from '../../helpers/fixture' +import SelectorEngine from '../../../src/dom/selector-engine.js' +import { clearFixture, getFixture } from '../../helpers/fixture.js' describe('SelectorEngine', () => { let fixtureEl diff --git a/js/tests/unit/dropdown.spec.js b/js/tests/unit/dropdown.spec.js index 2bbd7c00a7..1031ea1c8f 100644 --- a/js/tests/unit/dropdown.spec.js +++ b/js/tests/unit/dropdown.spec.js @@ -1,7 +1,7 @@ -import Dropdown from '../../src/dropdown' -import EventHandler from '../../src/dom/event-handler' -import { noop } from '../../src/util/index' -import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture' +import Dropdown from '../../src/dropdown.js' +import EventHandler from '../../src/dom/event-handler.js' +import { noop } from '../../src/util/index.js' +import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture.js' describe('Dropdown', () => { let fixtureEl diff --git a/js/tests/unit/jquery.spec.js b/js/tests/unit/jquery.spec.js index 7da39d6303..7d7f29dc72 100644 --- a/js/tests/unit/jquery.spec.js +++ b/js/tests/unit/jquery.spec.js @@ -1,18 +1,18 @@ /* eslint-env jquery */ -import Alert from '../../src/alert' -import Button from '../../src/button' -import Carousel from '../../src/carousel' -import Collapse from '../../src/collapse' -import Dropdown from '../../src/dropdown' -import Modal from '../../src/modal' -import Offcanvas from '../../src/offcanvas' -import Popover from '../../src/popover' -import ScrollSpy from '../../src/scrollspy' -import Tab from '../../src/tab' -import Toast from '../../src/toast' -import Tooltip from '../../src/tooltip' -import { clearFixture, getFixture } from '../helpers/fixture' +import Alert from '../../src/alert.js' +import Button from '../../src/button.js' +import Carousel from '../../src/carousel.js' +import Collapse from '../../src/collapse.js' +import Dropdown from '../../src/dropdown.js' +import Modal from '../../src/modal.js' +import Offcanvas from '../../src/offcanvas.js' +import Popover from '../../src/popover.js' +import ScrollSpy from '../../src/scrollspy.js' +import Tab from '../../src/tab.js' +import Toast from '../../src/toast.js' +import Tooltip from '../../src/tooltip.js' +import { clearFixture, getFixture } from '../helpers/fixture.js' describe('jQuery', () => { let fixtureEl diff --git a/js/tests/unit/modal.spec.js b/js/tests/unit/modal.spec.js index fdee29e95a..4639bb80a7 100644 --- a/js/tests/unit/modal.spec.js +++ b/js/tests/unit/modal.spec.js @@ -1,7 +1,7 @@ -import Modal from '../../src/modal' -import EventHandler from '../../src/dom/event-handler' -import ScrollBarHelper from '../../src/util/scrollbar' -import { clearBodyAndDocument, clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture' +import Modal from '../../src/modal.js' +import EventHandler from '../../src/dom/event-handler.js' +import ScrollBarHelper from '../../src/util/scrollbar.js' +import { clearBodyAndDocument, clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture.js' describe('Modal', () => { let fixtureEl diff --git a/js/tests/unit/offcanvas.spec.js b/js/tests/unit/offcanvas.spec.js index da2fb97480..71caf7c4e8 100644 --- a/js/tests/unit/offcanvas.spec.js +++ b/js/tests/unit/offcanvas.spec.js @@ -1,8 +1,8 @@ -import Offcanvas from '../../src/offcanvas' -import EventHandler from '../../src/dom/event-handler' -import { clearBodyAndDocument, clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture' -import { isVisible } from '../../src/util/index' -import ScrollBarHelper from '../../src/util/scrollbar' +import Offcanvas from '../../src/offcanvas.js' +import EventHandler from '../../src/dom/event-handler.js' +import { clearBodyAndDocument, clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture.js' +import { isVisible } from '../../src/util/index.js' +import ScrollBarHelper from '../../src/util/scrollbar.js' describe('Offcanvas', () => { let fixtureEl diff --git a/js/tests/unit/popover.spec.js b/js/tests/unit/popover.spec.js index baf691cdce..543ab648cd 100644 --- a/js/tests/unit/popover.spec.js +++ b/js/tests/unit/popover.spec.js @@ -1,6 +1,6 @@ -import Popover from '../../src/popover' -import EventHandler from '../../src/dom/event-handler' -import { clearFixture, getFixture, jQueryMock } from '../helpers/fixture' +import Popover from '../../src/popover.js' +import EventHandler from '../../src/dom/event-handler.js' +import { clearFixture, getFixture, jQueryMock } from '../helpers/fixture.js' describe('Popover', () => { let fixtureEl diff --git a/js/tests/unit/scrollspy.spec.js b/js/tests/unit/scrollspy.spec.js index c7951e6ff1..38712a260d 100644 --- a/js/tests/unit/scrollspy.spec.js +++ b/js/tests/unit/scrollspy.spec.js @@ -1,8 +1,8 @@ -import ScrollSpy from '../../src/scrollspy' +import ScrollSpy from '../../src/scrollspy.js' /** Test helpers */ -import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture' -import EventHandler from '../../src/dom/event-handler' +import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture.js' +import EventHandler from '../../src/dom/event-handler.js' describe('ScrollSpy', () => { let fixtureEl diff --git a/js/tests/unit/tab.spec.js b/js/tests/unit/tab.spec.js index 1ac5929e17..13db0d6645 100644 --- a/js/tests/unit/tab.spec.js +++ b/js/tests/unit/tab.spec.js @@ -1,5 +1,5 @@ -import Tab from '../../src/tab' -import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture' +import Tab from '../../src/tab.js' +import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture.js' describe('Tab', () => { let fixtureEl diff --git a/js/tests/unit/toast.spec.js b/js/tests/unit/toast.spec.js index 42d25156bb..cfc56c74aa 100644 --- a/js/tests/unit/toast.spec.js +++ b/js/tests/unit/toast.spec.js @@ -1,5 +1,5 @@ -import Toast from '../../src/toast' -import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture' +import Toast from '../../src/toast.js' +import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture.js' describe('Toast', () => { let fixtureEl diff --git a/js/tests/unit/tooltip.spec.js b/js/tests/unit/tooltip.spec.js index 4330571b47..89dfbd79b9 100644 --- a/js/tests/unit/tooltip.spec.js +++ b/js/tests/unit/tooltip.spec.js @@ -1,7 +1,7 @@ -import Tooltip from '../../src/tooltip' -import EventHandler from '../../src/dom/event-handler' -import { noop } from '../../src/util/index' -import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture' +import Tooltip from '../../src/tooltip.js' +import EventHandler from '../../src/dom/event-handler.js' +import { noop } from '../../src/util/index.js' +import { clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture.js' describe('Tooltip', () => { let fixtureEl diff --git a/js/tests/unit/util/backdrop.spec.js b/js/tests/unit/util/backdrop.spec.js index 73384fc90b..0faaac6a5c 100644 --- a/js/tests/unit/util/backdrop.spec.js +++ b/js/tests/unit/util/backdrop.spec.js @@ -1,6 +1,6 @@ -import Backdrop from '../../../src/util/backdrop' -import { getTransitionDurationFromElement } from '../../../src/util/index' -import { clearFixture, getFixture } from '../../helpers/fixture' +import Backdrop from '../../../src/util/backdrop.js' +import { getTransitionDurationFromElement } from '../../../src/util/index.js' +import { clearFixture, getFixture } from '../../helpers/fixture.js' const CLASS_BACKDROP = '.modal-backdrop' const CLASS_NAME_FADE = 'fade' diff --git a/js/tests/unit/util/component-functions.spec.js b/js/tests/unit/util/component-functions.spec.js index ec36672cb3..cc883a7971 100644 --- a/js/tests/unit/util/component-functions.spec.js +++ b/js/tests/unit/util/component-functions.spec.js @@ -1,8 +1,8 @@ /* Test helpers */ -import { clearFixture, createEvent, getFixture } from '../../helpers/fixture' -import { enableDismissTrigger } from '../../../src/util/component-functions' -import BaseComponent from '../../../src/base-component' +import { clearFixture, createEvent, getFixture } from '../../helpers/fixture.js' +import { enableDismissTrigger } from '../../../src/util/component-functions.js' +import BaseComponent from '../../../src/base-component.js' class DummyClass2 extends BaseComponent { static get NAME() { diff --git a/js/tests/unit/util/config.spec.js b/js/tests/unit/util/config.spec.js index 0037e09d78..93987a74ad 100644 --- a/js/tests/unit/util/config.spec.js +++ b/js/tests/unit/util/config.spec.js @@ -1,5 +1,5 @@ -import Config from '../../../src/util/config' -import { clearFixture, getFixture } from '../../helpers/fixture' +import Config from '../../../src/util/config.js' +import { clearFixture, getFixture } from '../../helpers/fixture.js' class DummyConfigClass extends Config { static get NAME() { diff --git a/js/tests/unit/util/focustrap.spec.js b/js/tests/unit/util/focustrap.spec.js index bedd124c9e..71e60449fb 100644 --- a/js/tests/unit/util/focustrap.spec.js +++ b/js/tests/unit/util/focustrap.spec.js @@ -1,7 +1,7 @@ -import FocusTrap from '../../../src/util/focustrap' -import EventHandler from '../../../src/dom/event-handler' -import SelectorEngine from '../../../src/dom/selector-engine' -import { clearFixture, createEvent, getFixture } from '../../helpers/fixture' +import FocusTrap from '../../../src/util/focustrap.js' +import EventHandler from '../../../src/dom/event-handler.js' +import SelectorEngine from '../../../src/dom/selector-engine.js' +import { clearFixture, createEvent, getFixture } from '../../helpers/fixture.js' describe('FocusTrap', () => { let fixtureEl diff --git a/js/tests/unit/util/index.spec.js b/js/tests/unit/util/index.spec.js index 202c72061d..20f74a5586 100644 --- a/js/tests/unit/util/index.spec.js +++ b/js/tests/unit/util/index.spec.js @@ -1,6 +1,6 @@ -import * as Util from '../../../src/util/index' -import { clearFixture, getFixture } from '../../helpers/fixture' -import { noop } from '../../../src/util/index' +import * as Util from '../../../src/util/index.js' +import { clearFixture, getFixture } from '../../helpers/fixture.js' +import { noop } from '../../../src/util/index.js' describe('Util', () => { let fixtureEl diff --git a/js/tests/unit/util/sanitizer.spec.js b/js/tests/unit/util/sanitizer.spec.js index c656aed353..55e9b63364 100644 --- a/js/tests/unit/util/sanitizer.spec.js +++ b/js/tests/unit/util/sanitizer.spec.js @@ -1,4 +1,4 @@ -import { DefaultAllowlist, sanitizeHtml } from '../../../src/util/sanitizer' +import { DefaultAllowlist, sanitizeHtml } from '../../../src/util/sanitizer.js' describe('Sanitizer', () => { describe('sanitizeHtml', () => { diff --git a/js/tests/unit/util/scrollbar.spec.js b/js/tests/unit/util/scrollbar.spec.js index 6fcf5718bb..281b3541b4 100644 --- a/js/tests/unit/util/scrollbar.spec.js +++ b/js/tests/unit/util/scrollbar.spec.js @@ -1,6 +1,6 @@ -import { clearBodyAndDocument, clearFixture, getFixture } from '../../helpers/fixture' -import Manipulator from '../../../src/dom/manipulator' -import ScrollBarHelper from '../../../src/util/scrollbar' +import { clearBodyAndDocument, clearFixture, getFixture } from '../../helpers/fixture.js' +import Manipulator from '../../../src/dom/manipulator.js' +import ScrollBarHelper from '../../../src/util/scrollbar.js' describe('ScrollBar', () => { let fixtureEl diff --git a/js/tests/unit/util/swipe.spec.js b/js/tests/unit/util/swipe.spec.js index f92bb5d007..b527b5a1ef 100644 --- a/js/tests/unit/util/swipe.spec.js +++ b/js/tests/unit/util/swipe.spec.js @@ -1,7 +1,7 @@ -import { clearFixture, getFixture } from '../../helpers/fixture' -import EventHandler from '../../../src/dom/event-handler' -import Swipe from '../../../src/util/swipe' -import { noop } from '../../../src/util' +import { clearFixture, getFixture } from '../../helpers/fixture.js' +import EventHandler from '../../../src/dom/event-handler.js' +import Swipe from '../../../src/util/swipe.js' +import { noop } from '../../../src/util/index.js' describe('Swipe', () => { const { Simulator, PointerEvent } = window diff --git a/js/tests/unit/util/template-factory.spec.js b/js/tests/unit/util/template-factory.spec.js index 5e5724c5f8..bc947dc46a 100644 --- a/js/tests/unit/util/template-factory.spec.js +++ b/js/tests/unit/util/template-factory.spec.js @@ -1,5 +1,5 @@ -import { clearFixture, getFixture } from '../../helpers/fixture' -import TemplateFactory from '../../../src/util/template-factory' +import { clearFixture, getFixture } from '../../helpers/fixture.js' +import TemplateFactory from '../../../src/util/template-factory.js' describe('TemplateFactory', () => { let fixtureEl diff --git a/site/content/docs/5.2/examples/dashboard-rtl/dashboard.js b/site/content/docs/5.2/examples/dashboard-rtl/dashboard.js index 96e0895bf2..dcb0fd9409 100644 --- a/site/content/docs/5.2/examples/dashboard-rtl/dashboard.js +++ b/site/content/docs/5.2/examples/dashboard-rtl/dashboard.js @@ -22,13 +22,13 @@ ], datasets: [{ data: [ - 15339, - 21345, - 18483, - 24003, - 23489, - 24092, - 12034 + 15_339, + 21_345, + 18_483, + 24_003, + 23_489, + 24_092, + 12_034 ], lineTension: 0, backgroundColor: 'transparent', diff --git a/site/content/docs/5.2/examples/dashboard/dashboard.js b/site/content/docs/5.2/examples/dashboard/dashboard.js index e1379758b2..fe97baeae6 100644 --- a/site/content/docs/5.2/examples/dashboard/dashboard.js +++ b/site/content/docs/5.2/examples/dashboard/dashboard.js @@ -22,13 +22,13 @@ ], datasets: [{ data: [ - 15339, - 21345, - 18483, - 24003, - 23489, - 24092, - 12034 + 15_339, + 21_345, + 18_483, + 24_003, + 23_489, + 24_092, + 12_034 ], lineTension: 0, backgroundColor: 'transparent', -- cgit v1.2.3