Hi, I have source.organizeImports but it doesn't remove blank lines between import declarations, it there any rule for this one?
source.organizeImports
Hi, with the package eslint-plugin-simple-import-sort as well as eslint-plugin-import this works:
// in settings.json "editor.codeActionsOnSave": { "source.fixAll.eslint": true, "source.organizeImports": true },
// in .eslintrc "plugins": ["simple-import-sort", "import"], "rules": { "simple-import-sort/imports": "error", "simple-import-sort/exports": "error", "import/first": "error", "import/newline-after-import": "error", "import/no-duplicates": "error", }
Wreally importante publicante !
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, I have
source.organizeImportsbut it doesn't remove blank lines between import declarations, it there any rule for this one?Hi, with the package eslint-plugin-simple-import-sort as well as eslint-plugin-import this works:
Wreally importante publicante !