Skip to content

Instantly share code, notes, and snippets.

@Jerry-Lau

Jerry-Lau/.eslintrc

Last active Nov 30, 2017
Embed
What would you like to do?
eslint rules based airbnb javascript style guide
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"airbnb" // 以社区广泛使用的 airbnb 风格指南作为基础
],
"plugins": [
"import",
"react",
"jsx-a11y"
],
"globals": { // 定义全局属性
"__DEV__": true,
"__dirname": true,
"global": true,
"process": true,
"window": true
},
"rules": { // 需要的规则在这里添加
"semi": "off"
}
}
@Jerry-Lau

This comment has been minimized.

Copy link
Owner Author

@Jerry-Lau Jerry-Lau commented Nov 30, 2017

仅供参考,如有不足,敬请指正。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.