<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jeroen Engels on Medium]]></title>
        <description><![CDATA[Stories by Jeroen Engels on Medium]]></description>
        <link>https://medium.com/@jfmengels?source=rss-d0566317f661------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dvg-QBOE58mNpzLR.jpg</url>
            <title>Stories by Jeroen Engels on Medium</title>
            <link>https://medium.com/@jfmengels?source=rss-d0566317f661------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:22:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jfmengels/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[You are missing out if you are using the `standard` CLI]]></title>
            <link>https://medium.com/@jfmengels/you-are-missing-out-if-you-are-using-the-standard-cli-22f9587b24ae?source=rss-d0566317f661------2</link>
            <guid isPermaLink="false">https://medium.com/p/22f9587b24ae</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[eslint]]></category>
            <dc:creator><![CDATA[Jeroen Engels]]></dc:creator>
            <pubDate>Wed, 14 Sep 2016 20:10:32 GMT</pubDate>
            <atom:updated>2016-09-14T20:52:40.697Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I have seen a lot of tweets about <a href="http://standardjs.com/"><strong>standard</strong></a>. I’m not sure if the maintainers have started retweeting more standard related tweets, or if there is simply a surge of people trying it out.</p><h3>Nolan Lawson on Twitter</h3><p>Finally decided I&#39;m all-in on StandardJS for future projects. Managing config files is just not worth it, and `standard --fix` is awesome.</p><p>A common criticism of ESLint is that it is too hard to configure. The sheer volume of configuration options and plugins creates analysis paralysis and inhibits wide application. Standard solves this problem by wrapping ESLint, eliminating configuration altogether, and enforcing a “standard” code style which can’t be overridden.</p><blockquote>“No decisions to make. No [configuration] files to manage. It just works.”</blockquote><blockquote><strong>“No configuration.</strong> The easiest way to enforce consistent style in your project. Just drop it in.”</blockquote><p>It’s worth noting that standard is not <strong>the</strong> JavaScript standard code style, as there isn’t a recommended one by the committee in charge of JavaScript, but instead <strong>a</strong> standard style that reflects the preferences of the maintainers.</p><blockquote>“The style laid out here is not affiliated with any official web standards groups, which is why this repo is called feross/standard and not ECMA/standard.”</blockquote><h3>What bothers me with standard</h3><h4>standard is not a replacement for ESLint</h4><p>As the ESLint team puts it:</p><blockquote>“ESLint isn’t a code style tool, it’s a code quality tool that some use to enforce code style.”</blockquote><h3>ESLint on Twitter</h3><p>ESLint isn&#39;t a code style tool, it&#39;s a code quality tool that some use to enforce code style.</p><p>standard, on the other side, is a code style linter. The two tools have different purposes, but <strong>standard is very often considered as a replacement for ESLint, which it isn’t</strong>.</p><p>Just to clear misunderstandings: standard is not just a code style linter, as it includes some ESLint rules about potential errors and helpful tips, but the essence of it is the code style enforcement.</p><h4>standard is not configurable</h4><p>The idea of having a zero configuration solution is very good and can be a huge time saver. I don’t mind not being able to override the code style rules, as long as they are not too foreign to what I’m used to.</p><p>Instead, my biggest criticism of the standard CLI is that, because it is not configurable, it misses out on the feature that makes ESLint so amazing: <strong>plugins</strong>.</p><h3>ESLint is pluggable</h3><p>ESLint has a vibrant community of 3rd party plugin developers. As OSS has proven time and again, allowing the community to enhance the core tool can sometimes lead to amazing additions and novel ideas. Here is a (awesome) <a href="https://github.com/dustinspecker/awesome-eslint#plugins">list of plugins</a> that have been created by the community. I myself am a creator and/or maintainer of several in that list.</p><blockquote>Plugins elevate ESLint from a tool that finds errors and checks your code style to a tool that takes your hand and helps you code.</blockquote><p>Here are just a few examples:</p><p><a href="https://github.com/avajs/ava">AVA</a> is a test runner (an alternative to <a href="https://mochajs.org/">Mocha</a>) with its own <a href="https://github.com/avajs/eslint-plugin-ava">ESLint plugin</a>. The plugin is one of my favorite examples, because it really guides AVA users towards using the tool well. There is a rule to check that the <a href="https://github.com/avajs/eslint-plugin-ava/blob/master/docs/rules/use-t-well.md">correct assertion method is used</a>, and one that ensures <a href="https://github.com/avajs/eslint-plugin-ava/blob/master/docs/rules/no-identical-title.md">tests are given a unique title</a>. It has a life-saving rule that <a href="https://github.com/avajs/eslint-plugin-ava/blob/master/docs/rules/no-only-test.md">forbids using `test.only()`</a> (similar to Mocha’s `describe.only()`) before it reaches your CI. <a href="https://github.com/avajs/eslint-plugin-ava/blob/master/docs/rules/no-ignored-test-files.md">ava/no-ignored-test-files</a> makes sure that your tests aren’t accidentally ignored by AVA. <a href="https://github.com/lo1tuma/eslint-plugin-mocha">eslint-plugin-mocha</a> also has a few similar rules to help you write good tests for that test runner.</p><p><a href="https://github.com/benmosher/eslint-plugin-import/">eslint-plugin-import</a> is mostly concerned with whether you use `import`/`export` statements correctly. It has a few rules that will warn you when you are <a href="https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md">importing a module that does not exist</a>, or <a href="https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/named.md">access a named export that does not exist</a>. <a href="https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md">import/no-extraneous-dependencies</a> tells you when you are importing a package that you have not declared in your package.json’s dependencies.</p><p><a href="https://github.com/wix/eslint-plugin-lodash">eslint-plugin-lodash</a> has rules to help you use <a href="https://lodash.com/">Lodash</a> to its full potential, and <a href="https://github.com/jfmengels/eslint-plugin-lodash-fp">eslint-plugin-lodash-fp</a> helps you avoid a lot of traps and errors that <a href="https://github.com/lodash/lodash/wiki/FP-Guide">lodash/fp</a> offers when you are used to vanilla Lodash.</p><p><a href="https://github.com/jfmengels/eslint-plugin-fp">eslint-plugin-fp</a> goes one step further and limits what you can write in order for you to write JavaScript in a functional programming way.</p><p>I don’t know about you, but I think that these are some amazing tools to have and use. These are only available and made possible because ESLint is a pluggable tool.</p><h3>standard is not pluggable</h3><p>As I said before, you can’t use plugins with standard. Adopting the standard CLI is more than simply choosing a code style: <strong>It is a trade-off that includes giving up on a lot of good tools out there</strong>.</p><p><em>(Edit &amp; clarification: standard does support plugins to </em><a href="http://standardjs.com/#can-i-use-a-javascript-language-variant-like-flow"><em>add languages variants</em></a><em>, but not for adding rules)</em></p><p><strong>“But I like the (idea of a) standard code style”</strong></p><p>Fear not, the maintainers of standard have you covered and you can still use the standard code style while using plugins. You just need to use the ESLint CLI and <a href="https://github.com/feross/eslint-config-standard/">eslint-config-standard</a> (follow the instructions over there).</p><p>What is different from simply using the standard CLI?</p><ul><li>You can use plugins.</li><li>You gain the ability to override some configuration, which is counter to the standard philosophy. Obviously it’s up to you if you want to go ahead and do that.</li><li>You gain the ability to add new rules, which also means that you might want to take some time to configure your ESLint config. One of the selling points of standard is to make you avoid losing time on that, but in my opinion, the use of a few good plugins makes it worthwhile.</li></ul><p>If you’re not in love with standard, you can check out <a href="https://github.com/sindresorhus/xo">XO</a> (or <a href="https://github.com/feross/awesome-standard#forks">other alternatives</a>). It’s an alternative that has its own premade configuration, comes with a few nice plugins out of the box but stays configurable, meaning you can disable rules or add plugins.</p><p>Have a good one!</p><p>Jeroen</p><p><em>Thanks so much to </em><a href="https://medium.com/u/a692d471030"><em>James Talmage</em></a><em>, </em><a href="https://medium.com/u/c8a3ea8b87e5"><em>Vadim Demedes</em></a><em> and </em><a href="https://medium.com/u/dae46a3faf7b"><em>Ben Mosher</em></a><em> for their help on this.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22f9587b24ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>