插件系列
以上为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"
]
};
错误提示样式
terminal(cmd)嵌在Atom中
文件路径自动补全
方法跳转
文件类型图标
atom-react-native-autocomplete
react native 代码提示
Style React-Native components with css and built in support for SASS