Skip to content

Commit

Permalink
Update devDependencies (twbs#35841)
Browse files Browse the repository at this point in the history
* Update devDependencies

* @babel/core             ^7.17.0  →  ^7.17.2
* @rollup/plugin-replace   ^3.0.1  →   ^3.1.0
* eslint                   ^8.8.0  →   ^8.9.0
* eslint-config-xo        ^0.39.0  →  ^0.40.0
* hugo-bin                ^0.80.1  →  ^0.80.2
* karma                   ^6.3.15  →  ^6.3.16
* rollup                  ^2.67.1  →  ^2.67.2

* Fix new ESLint errors
  • Loading branch information
XhmikosR authored Feb 15, 2022
1 parent d568e02 commit 42da2b9
Show file tree
Hide file tree
Showing 8 changed files with 207 additions and 207 deletions.
2 changes: 1 addition & 1 deletion build/build-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const build = async plugin => {
babelHelpers: 'bundled'
})
],
external: source => {
external(source) {
// Pattern to identify local files
const pattern = /^(\.{1,2})\//

Expand Down
2 changes: 1 addition & 1 deletion js/tests/unit/dropdown.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('Dropdown', () => {
const dropdown = new Dropdown(btnDropdown, {
offset: getOffset,
popperConfig: {
onFirstUpdate: state => {
onFirstUpdate(state) {
expect(getOffset).toHaveBeenCalledWith({
popper: state.rects.popper,
reference: state.rects.reference,
Expand Down
6 changes: 3 additions & 3 deletions js/tests/unit/scrollspy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ describe('ScrollSpy', () => {
contentEl,
scrollSpy,
spy,
cb: () => {
cb() {
testElementIsActiveAfterScroll({
elementSelector: '#a-2',
targetSelector: '#div-2',
Expand Down Expand Up @@ -283,7 +283,7 @@ describe('ScrollSpy', () => {
contentEl,
scrollSpy,
spy,
cb: () => {
cb() {
testElementIsActiveAfterScroll({
elementSelector: '#a-2',
targetSelector: '#div-2',
Expand Down Expand Up @@ -325,7 +325,7 @@ describe('ScrollSpy', () => {
contentEl,
scrollSpy,
spy,
cb: () => {
cb() {
testElementIsActiveAfterScroll({
elementSelector: '#a-2',
targetSelector: '#div-2',
Expand Down
2 changes: 1 addition & 1 deletion js/tests/unit/tooltip.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ describe('Tooltip', () => {
const tooltip = new Tooltip(tooltipEl, {
offset: getOffset,
popperConfig: {
onFirstUpdate: state => {
onFirstUpdate(state) {
expect(getOffset).toHaveBeenCalledWith({
popper: state.rects.popper,
reference: state.rects.reference,
Expand Down
8 changes: 4 additions & 4 deletions js/tests/unit/util/swipe.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('Swipe', () => {
defineDocumentElementOntouchstart()
// eslint-disable-next-line no-new
new Swipe(swipeEl, {
leftCallback: () => {
leftCallback() {
expect(spyRight).not.toHaveBeenCalled()
restorePointerEvents()
resolve()
Expand All @@ -107,7 +107,7 @@ describe('Swipe', () => {
defineDocumentElementOntouchstart()
// eslint-disable-next-line no-new
new Swipe(swipeEl, {
rightCallback: () => {
rightCallback() {
expect(spyLeft).not.toHaveBeenCalled()
restorePointerEvents()
resolve()
Expand Down Expand Up @@ -190,7 +190,7 @@ describe('Swipe', () => {
defineDocumentElementOntouchstart()
// eslint-disable-next-line no-new
new Swipe(swipeEl, {
rightCallback: () => {
rightCallback() {
deleteDocumentElementOntouchstart()
expect().nothing()
resolve()
Expand All @@ -215,7 +215,7 @@ describe('Swipe', () => {
defineDocumentElementOntouchstart()
// eslint-disable-next-line no-new
new Swipe(swipeEl, {
leftCallback: () => {
leftCallback() {
expect().nothing()
deleteDocumentElementOntouchstart()
resolve()
Expand Down
2 changes: 1 addition & 1 deletion js/tests/unit/util/template-factory.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('TemplateFactory', () => {

it('should resolve class if function is given', () => {
const factory = new TemplateFactory({
extraClass: arg => {
extraClass(arg) {
expect(arg).toEqual(factory)
return 'testClass'
}
Expand Down
Loading

0 comments on commit 42da2b9

Please sign in to comment.