This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
(() => {
|
||||
const findings = [{"file":"dev/js/modules/Counter.js","line":22,"column":37,"rule":"no-use-before-define","message":"'onClickIncrement' was used before it was defined."},{"file":"dev/js/modules/ternaryLintExample.js","line":39,"column":12,"rule":"@stylistic/no-extra-parens","message":"Unnecessary parentheses around expression."}];
|
||||
const findings = [{"file":"dev/js/modules/Counter.js","line":22,"column":37,"rule":"no-use-before-define","message":"'onClickIncrement' was used before it was defined."}];
|
||||
if (findings.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -48,6 +48,7 @@ export default [
|
||||
'no-extra-parens': 'off',
|
||||
'no-nested-ternary': 'off',
|
||||
'no-use-before-define': 'off',
|
||||
'no-plusplus': 'off',
|
||||
// Erzwingt Klammern um die Ternary-Bedingung. Stylistic kann das nur erlauben.
|
||||
'local/ternary-condition-parens': 'error',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user