Sindarius / npm_gcodeviewer

Useless template literal found

JS-R1004
Anti-pattern
Minor
2 months ago a year old
Seen in 1 file
1

Logical operator can be refactored to optional chain

JS-W1044
Anti-pattern
Minor
2 months ago 8 months old
Seen in 2 files
3

Either all code paths should have explicit returns, or none of them

JS-0045
Anti-pattern
Minor
2 months ago a year old
Seen in 2 files
3

No default cases in switch statements

JS-0047
Anti-pattern
Minor
2 months ago a year old
Seen in 4 files
10

Avoid use of == and !=

JS-0050
Anti-pattern
Minor
2 months ago a year old
Seen in 5 files
7

Found empty functions

JS-0057
Anti-pattern
Minor
2 months ago a year old
Seen in 5 files
8

Found some unnecessary nested blocks

JS-0072
Anti-pattern
Minor
2 months ago a year old
Seen in 3 files
12

Assignment operators should not be used in return statements

JS-0086
Anti-pattern
Minor
2 months ago a year old
Seen in 1 file
1

Unnecessary concatenation of literals or template literals found

JS-0096
Anti-pattern
Minor
2 months ago a year old
Seen in 1 file
1

Prefer var declarations be placed at the top of their scope

JS-0102
Anti-pattern
Minor
2 months ago a year old
Seen in 9 files
32

Class methods should utilize this

JS-0105
Anti-pattern
Minor
2 months ago a year old
Seen in 7 files
13

Default parameters should be defined at the last

JS-0106
Anti-pattern
Minor
2 months ago a year old
Seen in 1 file
1

Found empty block statements

JS-0009
Anti-pattern
Minor
2 months ago a year old
Seen in 1 file
1

Found duplicate module imports

JS-0232
Anti-pattern
Major
2 months ago a year old
Seen in 1 file
1

Consider using let or const instead of var

JS-0239
Anti-pattern
Major
2 months ago a year old
Seen in 10 files
46

Use shorthand property syntax for object literals

JS-0240
Anti-pattern
Minor
2 months ago a year old
Seen in 2 files
4

Consider using arrow functions for callbacks

JS-0241
Anti-pattern
Minor
2 months ago a year old
Seen in 1 file
1

Use const declarations for variables that are never reassigned

JS-0242
Anti-pattern
Minor
2 months ago a year old
Seen in 9 files
90

Require template literals instead of string concatenation

JS-0246
Anti-pattern
Minor
2 months ago a year old
Seen in 3 files
4

Found single char variable name

JS-C1002
Anti-pattern
Minor
2 months ago a year old
Seen in 3 files
5

Avoid using wildcard imports

JS-C1003
Anti-pattern
Minor
2 months ago a year old
Seen in 1 file
1

Function with cyclomatic complexity higher than threshold

JS-R1005
Anti-pattern
Minor
2 months ago 8 months old
Seen in 2 files
3

Initialization in variable declarations against recommended approach

JS-0119
Anti-pattern
Minor
2 months ago a year old
Seen in 3 files
5

Invalid variable usage

JS-0043
Anti-pattern
Critical
2 months ago a year old
Seen in 1 file
1