Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with import/newline-after-import #287

Open
codectl opened this issue May 2, 2024 · 1 comment
Open

Conflict with import/newline-after-import #287

codectl opened this issue May 2, 2024 · 1 comment

Comments

@codectl
Copy link

codectl commented May 2, 2024

I have the following set of rules:

import importPlugin from "eslint-plugin-import"
import prettierPlugin from "eslint-plugin-prettier"

export default [
  {
    plugins: {
      "import": importPlugin,
      "prettier": prettierPlugin,
    },
    rules: {
      "prettier/prettier": "error",
      "import/newline-after-import": ["error", { count: 2 }],
  }
]

Which results in an error:

Expected 2 empty lines after import statement not followed by another import  import/newline-after-import
@JounQin
Copy link
Member

JounQin commented May 3, 2024

What do you mean by conflict? prettier will not add new lines at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants