【发布时间】:2016-12-13 11:42:59
【问题描述】:
为 Atom 安装了 Nuclide,根据他们的 instructions 禁用了 linter,并且我还根据 their instructions 安装了 linter (?)。我还生成了一个 .eslintrc.js ..
module.exports = {
"extends": "airbnb",
"plugins": [
"react"
]
};
..在我的package.json 中,我有以下短绒
"eslint": "^2.13.1",
"eslint-config-airbnb": "^10.0.0",
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-import": "^1.12.0",
"eslint-plugin-jsx-a11y": "^2.0.1",
"eslint-plugin-react": "^6.0.0",
使用 Flow
@flow
var foo: number = '123424';
使用 Flow ** 有时 ** 有效。当我启动 Atom(并重新启动 Flow 服务器)时,Flow 有一半时间工作,其他时候根本没有。有什么办法可以让这个功能不那么不稳定并且一直有效?
使用 Lint 永远行不通。显然,Lint 将通过诊断功能工作,但事实并非如此。需要采取哪些步骤才能在 Nuclide 中进行 linting?谢谢!
我已经全局安装了 eslint。v3.2.2
【问题讨论】:
标签: atom-editor eslint nuclide-editor