mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-27 20:21:07 +08:00
feat: 废弃eslint校验规则,专注408内容
This commit is contained in:
57
.eslintrc.js
57
.eslintrc.js
@@ -1,57 +0,0 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
commonjs: true,
|
||||
es2021: false,
|
||||
},
|
||||
extends: [
|
||||
"airbnb-base",
|
||||
],
|
||||
|
||||
rules: {
|
||||
"array-callback-return": "error",
|
||||
indent: ["error", 4, { SwitchCase: 1 }],
|
||||
"block-spacing": "error",
|
||||
"brace-style": ["error", "1tbs"],
|
||||
camelcase: ["error", { properties: "never" }],
|
||||
"callback-return": ["error", ["cb", "callback", "next"]],
|
||||
"comma-spacing": "error",
|
||||
"comma-style": ["error", "last"],
|
||||
"consistent-return": "error",
|
||||
curly: ["error", "all"],
|
||||
"default-case": "error",
|
||||
"dot-notation": ["error", { allowKeywords: false }],
|
||||
"eol-last": "error",
|
||||
eqeqeq: "error",
|
||||
"guard-for-in": "error",
|
||||
"key-spacing": ["error", { beforeColon: false, afterColon: true }],
|
||||
"keyword-spacing": "error",
|
||||
"lines-around-comment": ["error", {
|
||||
beforeBlockComment: true,
|
||||
afterBlockComment: false,
|
||||
beforeLineComment: true,
|
||||
afterLineComment: false,
|
||||
}],
|
||||
"new-cap": "error",
|
||||
"newline-after-var": ["error", "never"],
|
||||
"new-parens": "error",
|
||||
"no-array-constructor": "error",
|
||||
"no-invalid-this": "error",
|
||||
"no-multi-spaces": "error",
|
||||
"no-redeclare": "error",
|
||||
"no-return-assign": "error",
|
||||
"no-spaced-func": "error",
|
||||
"no-trailing-spaces": "error",
|
||||
semi: "error",
|
||||
"semi-spacing": "error",
|
||||
quotes: ["error", "double"],
|
||||
"space-before-function-paren": ["error", "never"],
|
||||
"space-in-parens": "error",
|
||||
"space-infix-ops": "error",
|
||||
"space-unary-ops": ["error", { words: true, nonwords: false }],
|
||||
"spaced-comment": "error",
|
||||
yoda: ["error", "never"],
|
||||
"no-mixed-requires": "error",
|
||||
"handle-callback-err": ["error", "err"],
|
||||
},
|
||||
};
|
||||
@@ -1,7 +1,4 @@
|
||||
---
|
||||
footer: <a href="https://github.com/Mister-Hope">Mr.Hope</a>
|
||||
copyrightText: MIT LICENSE
|
||||
---
|
||||
|
||||
|
||||
## 计算机网络
|
||||
|
||||
|
||||
10
package.json
10
package.json
@@ -17,17 +17,11 @@
|
||||
"url": "https://github.com/142vip"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vuepress/client": "2.0.0-beta.60",
|
||||
"eslint": "8",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.5.1",
|
||||
"eslint-plugin-react": "^7.28.0",
|
||||
"eslint-plugin-react-hooks": "^4.3.0",
|
||||
"vue": "^3.2.45",
|
||||
"vuepress": "2.0.0-beta.60",
|
||||
"vuepress-plugin-search-pro": "^2.0.0-beta.172",
|
||||
"vuepress-theme-hope": "^2.0.0-beta.171"
|
||||
"vuepress-theme-hope": "^2.0.0-beta.171",
|
||||
"@vuepress/client": "2.0.0-beta.60"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
|
||||
869
pnpm-lock.yaml
generated
869
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user