Compare commits

...

2 Commits

Author SHA1 Message Date
f684f52d8f [latexfmt] Add indents for code 2025-06-06 13:20:52 +02:00
1079f62c06 [Eslint] Fix no-extra-parens config 2025-06-06 13:20:39 +02:00
2 changed files with 33 additions and 1 deletions

View File

@ -117,7 +117,13 @@ const style = {
],
'@stylistic/no-extra-parens': [
'error',
'all'
'all',
{
'nestedBinaryExpressions': false,
'ternaryOperandBinaryExpressions': false,
'ignoreJSX': 'multi-line',
'nestedConditionalExpressions': false
}
],
'@stylistic/no-extra-semi': 'error',
'@stylistic/no-floating-decimal': 'error',

View File

@ -29,3 +29,29 @@ indentRules:
formula: " "
conjugation: " "
forms: " "
specialBeginEnd:
If:
begin: '\\If'
middle:
- '\\ElsIf'
- '\\Else'
end: '\\EndIf'
lookForThis: 1
For:
begin: '\\For'
end: '\\EndFor'
lookForThis: 1
Procedure:
begin: '\\Procedure'
end: '\\EndProcedure'
lookForThis: 1
Function:
begin: '\\Function'
end: '\\EndFunction'
lookForThis: 1
While:
begin: '\\While'
end: '\\EndWhile'
lookForThis: 1
specialBeforeCommand: 1