mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-16 10:34:07 +02:00
ESLint: fix sourceType
for docs md files
This commit is contained in:
@@ -206,10 +206,7 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"**/*.md/*.js"
|
"**/*.md/*.js"
|
||||||
],
|
],
|
||||||
"extends": "plugin:markdown/recommended",
|
"extends": "plugin:markdown/recommended"
|
||||||
"parserOptions": {
|
|
||||||
"sourceType": "module"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -215,8 +215,8 @@ This makes an alert listen for click events on descendant elements which have th
|
|||||||
Basic usage:
|
Basic usage:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const alert = bootstrap.Alert.getOrCreateInstance('#myAlert')
|
const myAlert = bootstrap.Alert.getOrCreateInstance('#myAlert')
|
||||||
alert.close()
|
myAlert.close()
|
||||||
```
|
```
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
@@ -160,7 +160,7 @@ In addition to the `getInstance` and `getOrCreateInstance` methods, all plugin c
|
|||||||
const modal = new bootstrap.Modal('#myModal')
|
const modal = new bootstrap.Modal('#myModal')
|
||||||
const dropdown = new bootstrap.Dropdown('[data-bs-toggle="dropdown"]')
|
const dropdown = new bootstrap.Dropdown('[data-bs-toggle="dropdown"]')
|
||||||
const offcanvas = bootstrap.Offcanvas.getInstance('#myOffcanvas')
|
const offcanvas = bootstrap.Offcanvas.getInstance('#myOffcanvas')
|
||||||
const alert = bootstrap.Alert.getOrCreateInstance('#myAlert')
|
const myAlert = bootstrap.Alert.getOrCreateInstance('#myAlert')
|
||||||
```
|
```
|
||||||
|
|
||||||
### Asynchronous functions and transitions
|
### Asynchronous functions and transitions
|
||||||
|
Reference in New Issue
Block a user