mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
1c6f8f8a36
Updates markdown-it to v13.0.1 Noteworthy changes: * `markdownit()` is now available on `globalThis` instead of `window`. * The `text_collapse` rule was renamed to `fragments_join` which affected the `bbcode-inline` implementation. * The `linkify` rule was added to the `inline` chain which affected the handling of the `[url]` BBCode. If available, our implementation reuses `link_open` and `link_close` tokens created by linkify in order to prevent duplicate links. * The rendered HTML for code changed slightly. There's now a linebreak before the `</code>` tag. The tests were adjusted accordingly.
48 lines
1.0 KiB
Plaintext
48 lines
1.0 KiB
Plaintext
{
|
|
"extends": "eslint-config-discourse",
|
|
"rules": {
|
|
"discourse-ember/global-ember": 2,
|
|
"eol-last": 2
|
|
},
|
|
"globals": {
|
|
"_": "off",
|
|
"acceptance": "off",
|
|
"asyncRender": "off",
|
|
"bootbox": "off",
|
|
"click": "off",
|
|
"count": "off",
|
|
"currentPath": "off",
|
|
"currentRouteName": "off",
|
|
"currentURL": "off",
|
|
"currentUser": "off",
|
|
"Discourse": "off",
|
|
"Ember": "off",
|
|
"exists": "off",
|
|
"fillIn": "off",
|
|
"find": "off",
|
|
"getSettledState": "off",
|
|
"globalThis": "readonly",
|
|
"hasModule": "off",
|
|
"invisible": "off",
|
|
"jQuery": "off",
|
|
"keyboardHelper": "off",
|
|
"keyEvent": "off",
|
|
"moduleFor": "off",
|
|
"moduleForComponent": "off",
|
|
"pauseTest": "off",
|
|
"Pretender": "off",
|
|
"query": "off",
|
|
"queryAll": "off",
|
|
"QUnit": "off",
|
|
"sandbox": "off",
|
|
"sinon": "off",
|
|
"test": "off",
|
|
"testDone": "off",
|
|
"testStart": "off",
|
|
"triggerEvent": "off",
|
|
"visible": "off",
|
|
"visit": "off",
|
|
"waitUntil": "off"
|
|
}
|
|
}
|