1 Star 0 Fork 0

shangwx/rh-anaconda-webui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.json 2.13 KB
一键复制 编辑 原始数据 按行查看 历史
{
"root": true,
"env": {
"browser": true,
"es2022": true
},
"extends": ["eslint:recommended", "standard", "standard-jsx", "standard-react"],
"parserOptions": {
"ecmaVersion": 2022
},
"plugins": ["react", "react-hooks", "simple-import-sort", "sort-destructure-keys"],
"rules": {
"comma-dangle": "off",
"indent": ["error", 4,
{
"ObjectExpression": "first",
"CallExpression": {"arguments": "first"},
"MemberExpression": 2,
"ignoredNodes": [ "JSXAttribute" ]
}],
"jsx-quotes": ["error", "prefer-double"],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
"no-console": "off",
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
"no-var": "error",
"prefer-promise-reject-errors": ["error", { "allowEmptyReject": true }],
"quotes": ["error", "double" ],
"semi": ["error", "always", { "omitLastInOneLineBlock": true }],
"sort-destructure-keys/sort-destructure-keys": 2,
"sort-keys": ["error", "asc", {"caseSensitive": true, "natural": true, "minKeys": 2}],
"simple-import-sort/imports": ["error", { "groups": [
["^cockpit$"],
["^"],
["^react", "^@patternfly"],
["/apis"],
["/actions", "/reducer"],
["/helpers"],
["/components.*js[x]$"],
["^cockpit-", "^os-release", "^dialogs"],
["^\\."],
["\\.scss"]
] }],
"import/no-useless-path-segments": "error",
"react/hook-use-state": ["error", { "allowDestructuredState": false }],
"react/jsx-closing-bracket-location": "off",
"react/jsx-indent": ["error", 4],
"react/prop-types": "off",
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "error"
},
"globals": {
"require": false,
"module": false
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shangwx/rh-anaconda-webui.git
git@gitee.com:shangwx/rh-anaconda-webui.git
shangwx
rh-anaconda-webui
rh-anaconda-webui
cockpit-lib-update-cockpit-lib-20240627-023403

搜索帮助