代码拉取完成,页面将自动刷新
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb",
"eslint:recommended",
"plugin:jsx-a11y/recommended",
"plugin:react/recommended",
"plugin:jest/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"globals": {
"React": true,
"ReactDOM": true,
"jQuery": false,
"$": false
},
"env": {
"browser": true,
"jest": true,
"node": true,
"commonjs": true,
"es6": true
},
"plugins": [],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/no-unused-vars": [2, { "args": "none" }],
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": 2
}
}
],
"rules": {
"prettier/prettier": ["error", {
"endOfLine":"auto"
}],
"no-console": 1, //禁用 console
"no-debugger": 1, //禁用 debugger
"no-dupe-args": 2, //函数参数不能重复
"no-regex-spaces": 2, //禁止正则表达式字面量中出现多个空格
"default-case": 2, //switch语句最后必须有default
"linebreak-style": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"no-use-before-define": "off"
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。