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

use eslint Unexpected token ... #895

Closed
lizilong007 opened this issue Aug 8, 2019 · 3 comments
Closed

use eslint Unexpected token ... #895

lizilong007 opened this issue Aug 8, 2019 · 3 comments
Labels
bug locked Please open a new issue and fill out the template instead of commenting.

Comments

@lizilong007
Copy link

node: v12.6.0

settings.json

{
  "prettier.semi": false,
  "prettier.singleQuote": true,
  "prettier.eslintIntegration": true,
  "prettier.printWidth": 120,
  "editor.formatOnSave": true
}

eslint Not available...
image
image

eslint can be used normally
image

if "prettier.eslintIntegration": false prettier can be used normally

package.json

{
  "name": "am",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "md5": "^2.2.1",
    "react": "16.8.6",
    "react-json-view": "^1.19.1",
    "react-native": "0.60.4",
    "react-native-fs": "^2.14.1",
    "react-native-sqlite-storage": "^3.3.11",
    "react-native-zip-archive": "^4.1.2"
  },
  "devDependencies": {
    "@babel/core": "^7.5.5",
    "@babel/runtime": "^7.5.5",
    "@react-native-community/eslint-config": "^0.0.5",
    "babel-jest": "^24.8.0",
    "eslint": "^6.1.0",
    "jest": "^24.8.0",
    "metro-react-native-babel-preset": "^0.55.0",
    "react-test-renderer": "16.8.6"
  },
  "jest": {
    "preset": "react-native"
  }
}
@ntotten
Copy link
Member

ntotten commented Aug 12, 2019

The prettier eslint module is not yet compatible with eslint 6. see: prettier/prettier-eslint#222

@ntotten
Copy link
Member

ntotten commented Aug 12, 2019

Duplicate of #870

@ntotten ntotten marked this as a duplicate of #870 Aug 12, 2019
@ntotten ntotten closed this as completed Aug 12, 2019
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot added the locked Please open a new issue and fill out the template instead of commenting. label Apr 12, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug locked Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

No branches or pull requests

2 participants