Skip to content

Commit

Permalink
Added new unicorn rules
Browse files Browse the repository at this point in the history
Signed-off-by: Jaid <[email protected]>
  • Loading branch information
Jaid committed Oct 3, 2024
1 parent 2558c6b commit 788daef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions etc/suppressed_in_error_lens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ rules:
- prefer-array-some
- no-console-spaces
- no-for-loop
- consistent-existence-index-check
regex:
- sort-character-class-elements
- sort-flags
Expand Down
3 changes: 3 additions & 0 deletions src/segments/typescript/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@ const unicornRules: Linter.Config['rules'] = {
'throw-new-error': warn,
'prefer-structured-clone': warn,
'no-length-as-slice-end': warn,
'prefer-global-this': warn,
'prefer-math-min-max': warn,
'consistent-existence-index-check': warn,
}
const importRules: Linter.Config['rules'] = {
first: warn,
Expand Down

0 comments on commit 788daef

Please sign in to comment.