fix: insert new line after inserting title, abstract or keywords (#29882)

GitOrigin-RevId: d8d79e95d9eb544adaff8850630df996461bacb9
This commit is contained in:
Borja
2025-11-26 09:05:27 +00:00
committed by Copybot
parent 4f5638348e
commit 2c00a7a3a4
12 changed files with 691 additions and 0 deletions
@@ -0,0 +1,21 @@
module.exports = {
meta: {
type: 'error',
docs: {
description:
'Prohibit CodeMirror themes that are generated in a function',
},
},
create(context) {
return {
':matches(ArrowFunctionExpression, FunctionDeclaration, FunctionExpression) CallExpression > MemberExpression[object.name="EditorView"]:matches([property.name="theme"],[property.name="baseTheme"])'(
node
) {
context.report({
node,
message: `EditorView.theme and EditorView.baseTheme each add CSS to the page for every instance of the theme. Store the theme in a variable and reuse it instead.`,
})
},
}
},
}