willtheorangeguy / Note-Style-Guide

Prefer adding u flag in regular expressions

JS-0117
Anti-pattern
Minor
4 months ago a year old
Seen in 4 files
48

Call to Function object

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

Logical operator can be refactored to optional chain

JS-W1044
Anti-pattern
Minor
4 months ago 4 months old
Seen in 4 files
526

Found shorthand type coercions

JS-0066
Anti-pattern
Minor
4 months ago a year old
Seen in 4 files
346

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

JS-0045
Anti-pattern
Minor
4 months ago a year old
Seen in 5 files
430

Avoid use of == and !=

JS-0050
Anti-pattern
Minor
4 months ago a year old
Seen in 4 files
296

No default cases in switch statements

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

Consider using let or const instead of var

JS-0239
Anti-pattern
Major
4 months ago a year old
Seen in 5 files
5.8k

Require template literals instead of string concatenation

JS-0246
Anti-pattern
Minor
4 months ago a year old
Seen in 5 files
1.6k

Assignment operators should not be used in return statements

JS-0086
Anti-pattern
Minor
4 months ago a year old
Seen in 4 files
136

Consider using arrow functions for callbacks

JS-0241
Anti-pattern
Minor
4 months ago a year old
Seen in 5 files
1.8k

Assignment found where both sides are exactly the same

JS-0088
Anti-pattern
Major
4 months ago a year old
Seen in 4 files
12

Invalid variable usage

JS-0043
Anti-pattern
Critical
4 months ago a year old
Seen in 4 files
682

Prefer var declarations be placed at the top of their scope

JS-0102
Anti-pattern
Minor
4 months ago a year old
Seen in 5 files
2.4k

Avoid square-bracket notation when accessing properties

JS-0049
Anti-pattern
Minor
4 months ago a year old
Seen in 4 files
72

Found single char variable name

JS-C1002
Anti-pattern
Minor
4 months ago a year old
Seen in 5 files
6.9k

Usage of comma operators should be avoided

JS-0090
Anti-pattern
Minor
4 months ago a year old
Seen in 5 files
1.9k

Detected the use of alert, confirm and prompt

JS-0052
Anti-pattern
Minor
4 months ago a year old
Seen in 4 files
22

Fallthrough of case statements found

JS-0064
Anti-pattern
Major
4 months ago a year old
Seen in 3 files
6

Prefer the usage of regular expression literals over the RegExp constructor

JS-0115
Anti-pattern
Minor
4 months ago a year old
Seen in 4 files
8

Void operators found

JS-0098
Anti-pattern
Minor
4 months ago a year old
Seen in 5 files
1.1k

Use shorthand property syntax for object literals

JS-0240
Anti-pattern
Minor
4 months ago a year old
Seen in 5 files
2.2k

Require rest parameters instead of arguments

JS-0244
Anti-pattern
Minor
4 months ago a year old
Seen in 5 files
335

Require spread operators instead of .apply()

JS-0245
Anti-pattern
Minor
4 months ago a year old
Seen in 4 files
70

Unnecessary calls to .call() and .apply() found

JS-0095
Anti-pattern
Minor
4 months ago a year old
Seen in 4 files
14