美文网首页
Atom for RN

Atom for RN

作者: lyzaijs | 来源:发表于2016-04-02 19:48 被阅读451次

插件系列

Linter

linter-eslint

以上为jsx语法检测工具(代码高亮与错误提示,但是要支持 react 则需要 eslint-plugin-react;打开终端进入项目目录输入eslint --init,进行设置)

cannot load eslint-plugin-react

npm install eslint eslint-plugin-react --save-dev

或者直接在package.json中添加如下内容:

  "devDependencies": {
    "babel-eslint": "^6.0.2",
    "eslint": "^2.7.0",
    "eslint-plugin-react": "^4.3.0"
  }

完成会在项目下生成 .eslintrc

module.exports = {
"parser": "babel-eslint",
"env": {
 // I write for browser
 "browser": true,
 // in CommonJS
 "node": true
},
// To give you an idea how to override rule options:
"rules": {
 "quotes": [2, "single"],
 "eol-last": [0],
 "no-mixed-requires": [0],
 "no-underscore-dangle": [0]
},
"plugins":[
"react"
]
};

linter-xo

错误提示样式

terminal-plus

terminal(cmd)嵌在Atom中

autocomplete-paths

文件路径自动补全

Hyperclick

方法跳转

file-icon

文件类型图标

atom-react-native-autocomplete

react native 代码提示

atom-react-native-css

Style React-Native components with css and built in support for SASS

相关文章

网友评论

      本文标题:Atom for RN

      本文链接:https://www.haomeiwen.com/subject/pnuylttx.html