1
0
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:
妹妹下雨回不去
2023-02-07 00:09:08 +08:00
parent aa1280912a
commit 34f9eb419c
4 changed files with 3 additions and 938 deletions

View File

@@ -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"],
},
};

View File

@@ -1,7 +1,4 @@
---
footer: <a href="https://github.com/Mister-Hope">Mr.Hope</a>
copyrightText: MIT LICENSE
---
## 计算机网络

View File

@@ -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

File diff suppressed because it is too large Load Diff