Skip to content

Instantly share code, notes, and snippets.

@jerrylau91
Last active November 30, 2017 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerrylau91/9768b83013d3b82aa49871bf9d687c34 to your computer and use it in GitHub Desktop.
Save jerrylau91/9768b83013d3b82aa49871bf9d687c34 to your computer and use it in GitHub Desktop.
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"
}
}
@jerrylau91
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment