我使用的 ESLint 配置文件为 React Native 官方仓库中的: https://github.com/facebook/react-native/blob/master/.eslintrc
错误提示: AssertionError: ImportDeclaration should appear when the mode is ES6 and in the module context
有个类似错误, 不过人家说是自己配置的问题: https://github.com/eslint/eslint/issues/4344 我按照他的做法修改配置文件在 "ecmaFeatures" 中增加了 "modules": true 还是报错.
请问该如何修改配置文件解决这个问题?
还有一个问题, 就是官方是在每个文件中都增加严格模式, 但是 ESLint 提示我这样在模块中添加标题是没必要的...