带有linter的Atom上的ES6

时间:2017-06-20 01:42:24

标签: javascript ecmascript-6 atom-editor eslint

为什么我在Atom上遇到这个解析错误?

我的.eslintrc:

{
  "root": true,
  "extends": ["eslint:recommended", "plugin:react/recommended"],
  "plugins": ["react"],
  "parserOptions": {
    "ecmaVersion": 6,
    "sourceType": "module",
    "ecmaFeatures": {
      "jsx": true,
      "modules": true,
      "experimentalObjectRestSpread": true
    }
  }
}

我的package.json:

  "devDependencies": {
    "babel-plugin-transform-class-properties": "^6.24.1",
    "eslint": "^3.19.0",
    "eslint-config-airbnb": "^15.0.1",
    "eslint-plugin-import": "^2.2.0",
    "eslint-plugin-jsx-a11y": "^5.0.1",
    "eslint-plugin-react": "^7.1.0",
    "react-scripts": "1.0.0"
  },

我的Atom套餐:

0 个答案:

没有答案