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...DiscussHow 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...DiscussHow 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...DiscussHow 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...DiscussHow 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...Discuss·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...Discuss·230 readseslint
Susomejiasblog.susomejias.dev·Jul 7, 2022Standardize imports with ESLintAdding this configuration will significantly improve the readability of our imports since they will follow a standard which we will define in said rule, let's see some small examples. Requirements In this article it will be assumed that ESLint is al...Discuss·131 readsCode Quality