mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-27 16:12:27 +00:00
Merge pull request #15710 from overleaf/tm-no-constant-binary-expressions
Add no-constant-binary-expression, fix existing expressions that have no effect GitOrigin-RevId: 6691e87181331ecbb5dabfda0be89839a0a4884b
This commit is contained in:
parent
c931d90f34
commit
e1c58c2aaf
2 changed files with 4 additions and 2 deletions
|
@ -18,6 +18,8 @@
|
|||
}
|
||||
},
|
||||
"rules": {
|
||||
"no-constant-binary-expression": "error",
|
||||
|
||||
// do not allow importing of implicit dependencies.
|
||||
"import/no-extraneous-dependencies": "error",
|
||||
|
||||
|
|
|
@ -217,8 +217,8 @@ const FigureModalContent = () => {
|
|||
'\\begin{figure}',
|
||||
'\t\\centering',
|
||||
`\t\\includegraphics${widthArgument}{${path}}`,
|
||||
`\t${captionCommand}` || null,
|
||||
`\t${labelCommand}` || null,
|
||||
`\t${captionCommand}`,
|
||||
`\t${labelCommand}`,
|
||||
`\\end{figure}${suffix}`,
|
||||
],
|
||||
view.state,
|
||||
|
|
Loading…
Reference in a new issue