0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-26 23:54:23 +01:00

ESLint: fix sourceType for docs md files

This commit is contained in:
XhmikosR 2024-03-11 16:35:47 +02:00
parent 7df3fb5970
commit 5fc4efb910
3 changed files with 4 additions and 7 deletions

View File

@ -206,10 +206,7 @@
"files": [
"**/*.md/*.js"
],
"extends": "plugin:markdown/recommended",
"parserOptions": {
"sourceType": "module"
}
"extends": "plugin:markdown/recommended"
}
]
}

View File

@ -215,8 +215,8 @@ This makes an alert listen for click events on descendant elements which have th
Basic usage:
```js
const alert = bootstrap.Alert.getOrCreateInstance('#myAlert')
alert.close()
const myAlert = bootstrap.Alert.getOrCreateInstance('#myAlert')
myAlert.close()
```
### Events

View File

@ -160,7 +160,7 @@ In addition to the `getInstance` and `getOrCreateInstance` methods, all plugin c
const modal = new bootstrap.Modal('#myModal')
const dropdown = new bootstrap.Dropdown('[data-bs-toggle="dropdown"]')
const offcanvas = bootstrap.Offcanvas.getInstance('#myOffcanvas')
const alert = bootstrap.Alert.getOrCreateInstance('#myAlert')
const myAlert = bootstrap.Alert.getOrCreateInstance('#myAlert')
```
### Asynchronous functions and transitions