2022-01-17 07:47:19 +08:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"commonjs": true,
|
|
|
|
"es2021": true
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"google"
|
|
|
|
],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": "latest"
|
|
|
|
},
|
|
|
|
"plugins": [
|
2022-09-12 08:07:42 +08:00
|
|
|
"@typescript-eslint",
|
|
|
|
"simple-import-sort"
|
2022-01-17 07:47:19 +08:00
|
|
|
],
|
|
|
|
"rules": {
|
2023-04-10 03:10:59 +08:00
|
|
|
"camelcase": "off",
|
2022-01-17 07:47:19 +08:00
|
|
|
"linebreak-style": "off",
|
|
|
|
"object-curly-spacing": "off",
|
|
|
|
"max-len": "off",
|
|
|
|
"require-jsdoc": "off",
|
2022-04-18 05:13:59 +08:00
|
|
|
"valid-jsdoc": "off",
|
2022-04-14 03:04:19 +08:00
|
|
|
"indent": ["error", 4, { "SwitchCase": 1 }],
|
2022-01-17 07:47:19 +08:00
|
|
|
"no-multi-spaces": "off",
|
|
|
|
"no-array-constructor": "off",
|
|
|
|
"guard-for-in": "off",
|
2022-02-12 08:59:14 +08:00
|
|
|
"func-call-spacing": "off",
|
|
|
|
"no-trailing-spaces": "off",
|
|
|
|
"new-cap": "off",
|
2022-02-20 05:50:17 +08:00
|
|
|
"no-console": "warn",
|
2022-04-14 03:04:19 +08:00
|
|
|
"no-unused-vars": "warn",
|
|
|
|
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
|
|
|
|
"block-spacing": [2, "always"],
|
2022-09-12 00:38:22 +08:00
|
|
|
"semi": "error",
|
|
|
|
"spaced-comment": "off",
|
2022-09-12 02:21:33 +08:00
|
|
|
"keyword-spacing": "off",
|
2022-09-12 08:07:42 +08:00
|
|
|
"space-before-function-paren": "off",
|
|
|
|
"simple-import-sort/imports": "error",
|
|
|
|
"simple-import-sort/exports": "error"
|
2022-01-17 07:47:19 +08:00
|
|
|
}
|
|
|
|
}
|