wewechat-plus-plus/.eslintrc.json
Riceneeder 58ce6cb67b wewechat++ init
仓库提交至星火社区作品集

Signed-off-by: Riceneeder <86492950+Riceneeder@users.noreply.github.com>
2022-09-01 20:38:13 +08:00

28 lines
767 B
JSON

{
"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"]
}