Skip to content

Commit

Permalink
Update .eslintrc.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
finscn authored Sep 12, 2023
1 parent 10a90ba commit f1505bf
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ rules:
no-plusplus: off # allow increment/decrement operators
no-continue: off # allow unlabeled continues
no-mixed-operators: off # this is just cumbersome
no-multi-assign: off # it is handy sometimes

no-nested-ternary: off # it is handy sometimes
no-param-reassign: off # the output object is passed as parameters all the time
no-restricted-syntax: off # for-in is a efficient choice for plain objects
Expand Down Expand Up @@ -177,8 +177,16 @@ rules:

max-len: [warn, 250] # more lenient on max length per line
no-console: warn # prefer the uniform logging methods
no-multi-spaces: [warn, {'ignoreEOLComments': true, 'exceptions': {'Property': true, 'VariableDeclarator': false } }]
no-multi-spaces: [warn, {
'ignoreEOLComments': true,
'exceptions': {
'Property': true,
'VariableDeclarator': false
}
}]
no-multiple-empty-lines: [warn, {max: 2, maxEOF: 1}]
no-multi-assign: [error, { 'ignoreNonDeclaration': true }]
max-statements-per-line: [error, { max: 1 }]

comma-dangle: [error, {
'arrays': always-multiline,
Expand Down

0 comments on commit f1505bf

Please sign in to comment.