![]() ![]() If you still decide to use eslint-plugin-svelte3, you'll need to run prettier -write *.svelte manually. When use with eslint-plugin-svelte3, eslint-plugin-prettier will just ignore the text passed by eslint-plugin-svelte3, because the text has been modified. ![]() We recommend to use eslint-plugin-svelte instead of eslint-plugin-svelte3 because eslint-plugin-svelte has a correct eslint-svelte-parser instead of hacking. "arrow-body-style": "off" and "prefer-arrow-callback": "off" turns off two ESLint core rules that unfortunately are problematic with this plugin – see the next section."prettier/prettier": "error" turns on the rule provided by this plugin, which runs Prettier from within ESLint."extends": enables the config from eslint-config-prettier, which turns off some ESLint rules that conflict with Prettier.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |