𝗧𝘆𝗽𝗲𝘀 𝗼𝗳 𝗟𝗼𝗼𝗽𝘀 𝗶𝗻 𝗝𝗦 Writing repetitive code makes your programs hard to maintain. It increases errors and wastes time. You should follow the DRY principle: Do Not Repeat Yourself.
𝗖𝗼𝗻𝗱𝗶𝘁𝗶𝗼𝗻𝗮𝗹 𝗦𝘁𝗮𝘁𝗲𝗺𝗲𝗻𝘁𝘀 In JavaScript, you use conditional statements to make decisions based on true or false conditions. The main ones are: - if - else - else if - switch - the ...
Most rules target JavaScript and TypeScript, but some also lint CSS, HTML, JSON, and Markdown when used with the matching ESLint language plugin.