Skip to content

Commit

Permalink
chore: enable no-undef-init lint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
tehciolo committed Oct 7, 2023
1 parent c3c6ebe commit 7d2660a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module.exports = {
'@typescript-eslint/no-shadow': ['error'],
'no-throw-literal': ['error'],
'no-trailing-spaces': ['error'],
'no-undef-init': ['error'],
'no-unused-expressions': ['off'],
'@typescript-eslint/no-unused-expressions': ['error', { 'allowShortCircuit': true, 'allowTernary': true, 'allowTaggedTemplates': true }],
'no-unused-private-class-members': ['error'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from 'react';
import globalize from 'scripts/globalize';

const LogLevelChip = ({ level }: { level: LogLevel }) => {
let color: 'info' | 'warning' | 'error' | undefined = undefined;
let color: 'info' | 'warning' | 'error' | undefined;
switch (level) {
case LogLevel.Information:
color = 'info';
Expand Down
2 changes: 1 addition & 1 deletion src/components/images/imageLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function fillImage(entry) {
throw new Error('entry cannot be null');
}
const target = entry.target;
let source = undefined;
let source;

if (target) {
source = target.getAttribute('data-src');
Expand Down

0 comments on commit 7d2660a

Please sign in to comment.