Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Mar 21, 2024
1 parent 2bbdcc7 commit 1c0b897
Show file tree
Hide file tree
Showing 23 changed files with 395 additions and 512 deletions.
145 changes: 1 addition & 144 deletions bubbo-bubbo/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
Expand All @@ -19,147 +17,6 @@
"simple-import-sort"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"comma-dangle": ["error", "always-multiline"],
"no-cond-assign": ["error", "except-parens"],
"no-console": ["error", { "allow": ["warn", "error"] }],
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "explicit",
"overrides": {
"constructors": "off",
"methods": "explicit",
"properties": "explicit",
"parameterProperties": "explicit"
}
}
],
"accessor-pairs": "error",
"array-callback-return": "error",
"block-scoped-var": "error",
"consistent-return": "error",
"curly": ["error", "multi-line"],
"dot-location": ["error", "property"],
"dot-notation": "error",
"eqeqeq": "error",
"no-alert": "error",
"no-caller": "error",
"no-div-regex": "error",
"no-else-return": "error",
"no-empty-function": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-implicit-coercion": ["error", { "boolean": false, "number": true, "string": true, "allow": [] }],
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-iterator": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-str": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"no-useless-call": "error",
"no-useless-concat": "error",
"no-void": "error",
"yoda": "error",
"no-catch-shadow": "error",
"no-label-var": "error",
"no-restricted-globals": "error",
"no-undef-init": "error",
"no-use-before-define": ["error", "nofunc"],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"brace-style": "off", // use prettier
"camelcase": ["error", { "properties": "always" }],
"comma-spacing": ["error", { "before": false, "after": true }],
"func-names": ["error", "always"],
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"indent": ["error", 4, { "SwitchCase": 1, "VariableDeclarator": { "var": 1, "let": 1, "const": 1 } }],
"max-depth": ["error", 6],
"max-len": ["error", { "code": 125, "tabWidth": 4, "comments": 200 }],
"max-nested-callbacks": ["error", { "max": 5 }],
"max-params": ["error", { "max": 10 }],
"max-statements-per-line": ["error", { "max": 2 }],
"new-cap": ["error", { "newIsCap": true, "capIsNew": false, "properties": false }],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*"},
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]}
],
"no-array-constructor": "error",
"no-lonely-if": "error",
"no-mixed-operators": "off",
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"no-nested-ternary": "error",
"no-new-object": "error",
"no-restricted-syntax": ["error", "DebuggerStatement", "EmptyStatement", "LabeledStatement", "WithStatement"],
"no-unneeded-ternary": "error",
"one-var": ["error", "never"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"semi": ["error", "always"],
"space-before-function-paren": "off", // use prettier
"space-infix-ops": "error",
"spaced-comment": ["error", "always"],
"arrow-body-style": ["error", "as-needed"],
"no-confusing-arrow": ["error", { "allowParens": true }],
"no-useless-computed-key": "error",
"no-useless-rename": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-const": "error",
"prefer-template": "error",
"array-bracket-spacing": "off",
"arrow-parens": "off",
"arrow-spacing": "off",
"block-spacing": "off",
"comma-style": "off",
"computed-property-spacing": "off",
"eol-last": "off",
"func-call-spacing": "off",
"generator-star-spacing": "off",
"jsx-quotes": "off",
"key-spacing": "off",
"keyword-spacing": "off",
"linebreak-style": "off",
"new-parens": "off",
"newline-per-chained-call": "off",
"no-floating-decimal": "off",
"no-mixed-spaces-and-tabs": "off",
"no-multi-spaces": "off",
"no-multiple-empty-lines": "off",
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"no-whitespace-before-property": "off",
"object-curly-spacing": "off",
"one-var-declaration-per-line": "off",
"operator-linebreak": "off",
"padded-blocks": "off",
"quote-props": "off",
"rest-spread-spacing": "off",
"semi-spacing": "off",
"space-before-blocks": "off",
"space-in-parens": "off",
"space-unary-ops": "off",
"template-curly-spacing": "off",
"unicode-bom": "off",
"wrap-iife": "off",
"wrap-regex": "off",
"yield-star-spacing": "off"
"@typescript-eslint/no-explicit-any": "off"
}
}
2 changes: 1 addition & 1 deletion bubbo-bubbo/.prettierrc.json → bubbo-bubbo/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"tabWidth": 4,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100
"printWidth": 120
}
Loading

0 comments on commit 1c0b897

Please sign in to comment.