wewechat++ init
仓库提交至星火社区作品集 Signed-off-by: Riceneeder <86492950+Riceneeder@users.noreply.github.com>
This commit is contained in:
27
.eslintrc.json
Normal file
27
.eslintrc.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2018,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"env": {
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
"parser": "babel-eslint",
|
||||
"plugins": ["react"],
|
||||
"rules": {
|
||||
"semi": [2, "always"],
|
||||
"new-cap": [0],
|
||||
"indent": [2, 4, { "SwitchCase": 1 }],
|
||||
"comma-dangle": [2, "only-multiline"],
|
||||
"space-before-function-paren": [2, "never"],
|
||||
"operator-linebreak": [2, "before"],
|
||||
"no-floating-decimal": [0],
|
||||
"react/jsx-indent": [2, 4],
|
||||
"react/jsx-indent-props": [2, 4],
|
||||
"react/jsx-boolean-value": [2, "always"],
|
||||
"react/prop-types": [0],
|
||||
"jsx-quotes": [2, "prefer-double"]
|
||||
},
|
||||
"extends": ["standard", "standard-react"]
|
||||
}
|
||||
Reference in New Issue
Block a user