eslint-config-prettier
Advanced tools
Changelog
Version 5.0.0 (2019-06-15)
Removed: [react/self-closing-comp]. This rule was added in v4.1.0 not because it conflicted with Prettier but because it was unnecessary when using Prettier. However, in v1.18.0 [Prettier stopped converting empty elements to self-closing elements][prettier-self-closing]. So the rule is not unnecessary anymore.
If you use Prettier v1.17.1 or older you should be able to upgrade eslint-config-prettier to v5.0.0 without having to do anything else.
If you use Prettier v1.18.0 or newer, you might get lint errors about for example changing <div></div>
into <div />
. You have two options:
eslint --fix
if you prefer to enforce self-closing elements where possible. This should fix all the errors."react/self-closing-comp": "off"
to your ESLint config if you use autofix from your editor and you face the same [issue as Prettier did][prettier-self-closing].Changed: Node.js 6 is no longer officially supported, but v5.0.0 should still work with it.
Changelog
Version 4.3.0 (2019-05-16)
Changelog
Version 4.2.0 (2019-04-25)
Changelog
Version 4.1.0 (2019-02-26)
Changelog
Version 4.0.0 (2019-01-26)
--fix
. They are turned off by default, and the CLI helper tool will warn about them (but not error if you do enable them). This won’t break your linting checks, but do note that these rules will be disabled unless you explicitly enable them again, and that you might see new warnings when running the CLI helper tool.Changelog
Version 3.6.0 (2019-01-19)
Changelog
Version 3.5.0 (2019-01-16)
vue/no-layout-rules
list, since there can be layout rules that don’t conflict with but rather complement Prettier.Changelog
Version 3.4.0 (2019-01-13)
vue/no-layout-rules
config behind the scenes, so it should automatically stay up-to-date when new eslint-plugin-vue versions are released. Thanks to Michał Sajnóg (@michalsnik)!Changelog
Version 3.3.0 (2018-11-11)