作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我更新了我所有的包,现在我使用 eslint 2.4.0 和 babel-eslint 5.0.0。
但是现在,我在 eslint 检查时遇到错误:
AssertionError: ImportDeclaration should appear when the mode is ES6 and in the module context.
我的 .eslintrc
是:
{
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"browser": true,
"node": true
},
"parser": "babel-eslint",
"rules": {
"quotes": [2, "single"],
"strict": [2, "never"],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2
},
"plugins": [
"react"
]
}
不兼容?重大变化?
谢谢
最佳答案
关于babeljs - Atom 和 eslint 更新 : ImportDeclaration should appear when the mode is ES6 and in the module context,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35956821/
我更新了我所有的包,现在我使用 eslint 2.4.0 和 babel-eslint 5.0.0。 但是现在,我在 eslint 检查时遇到错误: AssertionError: ImportDec
我是一名优秀的程序员,十分优秀!