Shikhar Shuklashikhar99.hashnode.dev·Nov 9, 2024Modern ESLint Configuration in React: Managing Prop Types and Unused Variables WarningsWhen working on React projects, ESLint is an invaluable tool for enforcing code quality. But sometimes, the default rules may not align with the specific needs of your project. In this article, we’ll explore how to configure ESLint for React applicat...32 readseslint
Gabriele Buffolinobite-sized.hashnode.dev·Dec 22, 2023Custom ESLint rules #5/5: use our pluginIn the previous bite, we crafted our plugin and we are ready to save your teammates from earing pineapple pizza! Here's how you can activate the rule in your project. Use our custom ESLint plugin Install your plugin along with eslint in your app pack...How to create a custom ESLint pluginJavaScript
Gabriele Buffolinobite-sized.hashnode.dev·Dec 15, 2023Custom ESLint rules #4/5: how to test custom rulesNo pineapple pizza must be allowed in our code. That is why, in the previous bite, we created a custom ESLint plugin with a dedicated rule to forbid it. It's now time to test it! Create ESLint plugin unit tests Install eslint as devDependency and cre...How to create a custom ESLint pluginJavaScript
Gabriele Buffolinobite-sized.hashnode.dev·Dec 8, 2023Custom ESLint rules #3/5: creating a new ruleTo save our teammates from eating pineapple pizza, we decided to create a custom ESLint plugin with a dedicated rule. In the previous bite, we set up a sample monorepo and now it's time to create our rule! How to write a custom ESLint rule At this po...How to create a custom ESLint pluginJavaScript
Gabriele Buffolinobite-sized.hashnode.dev·Nov 30, 2023Custom ESLint rules #2/5: setup a sample projectOur beloved teammates want to eat pineapple pizza! It's illegal! In the previous bite, we decided what to do to save them. Now we are going to discuss how to do it. ESLint plugins ESLint allows custom ruleset definitions using plugins. Like any other...How to create a custom ESLint pluginJavaScript
Gabriele Buffolinobite-sized.hashnode.dev·Nov 23, 2023Custom ESLint rules #1/5: introductionYou have your amazing project and you are working with an awesome team of people from all over the world. Everything's going great! Until one day you get an MR/PR from a colleague, you open it and... const yummyPizza = eatPizzaWithPineapple() "Oh no...46 readsHow to create a custom ESLint pluginJavaScript
Belinda Marion Kobusingyebelindamarionk.hashnode.dev·Oct 10, 2022What are Eslint rules?Eslint is a tool that identifies and reports syntax errors in Javascript/ECMAScript code. This tool is useful because it helps ensures consistency and minimizes unwanted errors. Eslint can be installed manually into a project. If you are using a Java...248 readseslint