Skip to content

sakgoyal/banNested

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ban Nested Ternary Operators

This is a simple Deno linting rule to ban nested ternaries. Nesting them is bad practice and should be avoided for readability

For example:

const foo = "test" ? "ssesf" : "sgfs";

const sdfsdf = "test" ? foo ? "bar" : "tes" : "sdfs";
                        //^ Error: Nested ternaries are banned

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors