代码拉取完成,页面将自动刷新
{
"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
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。