Skip to content

Eslint 5.6.0 causes linter errors with prettier? #110

@SuttonKyle

Description

@SuttonKyle

What version of eslint are you using?
5.6.0

What version of prettier are you using?
1.14.2

What version of eslint-plugin-prettier are you using?
2.6.2

Please paste any applicable config files that you're using (e.g. .prettierrc or .eslintrc files)
.eslintrc.json

{
  "extends": ["airbnb", "plugin:prettier/recommended"],
  "env": {
    "browser": true,
    "jest": true
  },
  "parser": "babel-eslint",
  "rules": {
    "semi": ["error", "never"],
    "import/first": 0,
    "import/prefer-default-export": 0,
    "react/prop-types": 0,
    "react/jsx-filename-extension": 0,
    "react/prefer-stateless-function": 0,
    "react/no-unused-state": 0,
    "jsx-a11y/anchor-is-valid": [
      "error",
      {
        "components": ["Link"],
        "specialLink": ["to"],
        "aspects": ["noHref", "invalidHref", "preferButton"]
      }
    ],
    "import/no-extraneous-dependencies": [
      "error",
      {
        "devDependencies": [".storybook/**", "src/stories/**"]
      }
    ]
  }
}

.prettierrc

{
    "semi": false,
    "singleQuote": true
}

What source code are you linting?
A React-based web app

What did you expect to happen?
prettier/prettier rules on ESLint to behave as they did before

What actually happened?
I got a bunch of new (mostly small) errors from prettier when running ESLint after upgrading to ESLint 5.6 from 4.19. They almost exclusively had to do with spacing. Terminal output is below:
image
Any ideas what could be causing these new errors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions