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:
parent
7df3fb5970
commit
5fc4efb910
@ -206,10 +206,7 @@
|
||||
"files": [
|
||||
"**/*.md/*.js"
|
||||
],
|
||||
"extends": "plugin:markdown/recommended",
|
||||
"parserOptions": {
|
||||
"sourceType": "module"
|
||||
}
|
||||
"extends": "plugin:markdown/recommended"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user