2019-03-25 17:25:21 +00:00
|
|
|
{
|
|
|
|
"extends": [
|
2021-11-16 20:10:27 +00:00
|
|
|
"eslint:recommended",
|
2022-05-08 13:02:15 +00:00
|
|
|
"plugin:import/recommended",
|
2021-11-16 20:10:27 +00:00
|
|
|
"plugin:vue/recommended"
|
2019-03-25 17:25:21 +00:00
|
|
|
],
|
|
|
|
"env": {
|
2021-11-14 08:01:37 +00:00
|
|
|
"es6": true,
|
|
|
|
"node": true,
|
|
|
|
"browser": true
|
2019-03-25 17:25:21 +00:00
|
|
|
},
|
2021-11-16 20:10:27 +00:00
|
|
|
"parser": "vue-eslint-parser",
|
2019-03-25 17:25:21 +00:00
|
|
|
"parserOptions": {
|
2021-11-14 19:15:39 +00:00
|
|
|
"ecmaVersion": 2021,
|
|
|
|
"sourceType": "module",
|
|
|
|
"parser": "@babel/eslint-parser"
|
2019-03-25 17:25:21 +00:00
|
|
|
},
|
2022-05-08 13:02:15 +00:00
|
|
|
"settings": {
|
|
|
|
"import/resolver": {
|
|
|
|
"alias": {
|
|
|
|
"map": [
|
|
|
|
["@", "./src"]
|
|
|
|
],
|
|
|
|
"extensions": [".js", ".vue"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2019-03-25 17:25:21 +00:00
|
|
|
"rules": {
|
2022-05-08 13:02:15 +00:00
|
|
|
"import/prefer-default-export": "off",
|
|
|
|
|
|
|
|
"import/no-unresolved": "error",
|
|
|
|
"import/named": "error",
|
|
|
|
"import/namespace": "error",
|
|
|
|
"import/default": "error",
|
|
|
|
"import/export": "error",
|
|
|
|
"import/no-named-as-default": "warn",
|
|
|
|
"import/no-named-as-default-member": "warn",
|
|
|
|
"import/no-duplicates": "warn",
|
|
|
|
"import/extensions": ["warn", "never"],
|
|
|
|
"import/first": "warn",
|
|
|
|
"import/newline-after-import": "warn",
|
|
|
|
"import/no-named-default": "warn",
|
|
|
|
"import/no-self-import": "warn",
|
|
|
|
"import/order": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"newlines-between": "always-and-inside-groups",
|
|
|
|
"pathGroups": [{ "pattern": "@/**", "group": "sibling" }]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"sort-imports": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"ignoreCase": true,
|
|
|
|
"allowSeparatedGroups": true
|
|
|
|
}
|
|
|
|
],
|
2019-03-25 17:25:21 +00:00
|
|
|
"no-console": "warn",
|
|
|
|
"no-template-curly-in-string": "warn",
|
|
|
|
"array-callback-return": "error",
|
|
|
|
"complexity": "warn",
|
|
|
|
"consistent-return": "error",
|
|
|
|
"dot-location": [
|
|
|
|
"error",
|
|
|
|
"property"
|
|
|
|
],
|
|
|
|
"dot-notation": "error",
|
|
|
|
"eqeqeq": "error",
|
|
|
|
"no-else-return": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allowElseIf": false
|
|
|
|
}
|
|
|
|
],
|
2022-03-24 16:57:06 +00:00
|
|
|
"vue/one-component-per-file": "error",
|
|
|
|
"vue/component-definition-name-casing": "warn",
|
|
|
|
"vue/order-in-components": "warn",
|
|
|
|
"vue/require-prop-type-constructor": "warn",
|
|
|
|
"vue/require-default-prop": "warn",
|
2021-11-28 11:29:15 +00:00
|
|
|
"vue/html-comment-content-newline": "warn",
|
|
|
|
"vue/html-comment-content-spacing": "warn",
|
|
|
|
"vue/html-comment-indent": "warn",
|
|
|
|
"vue/padding-line-between-blocks": "warn",
|
|
|
|
"vue/block-tag-newline": "warn",
|
|
|
|
"vue/no-multiple-objects-in-class": "warn",
|
|
|
|
"vue/no-static-inline-styles": "warn",
|
2021-12-12 21:23:08 +00:00
|
|
|
"vue/no-v-html": "off",
|
2019-03-25 17:25:21 +00:00
|
|
|
"no-empty-function": "error",
|
|
|
|
"no-eval": "error",
|
|
|
|
"no-extra-bind": "error",
|
|
|
|
"no-extra-label": "error",
|
|
|
|
"no-floating-decimal": "error",
|
|
|
|
"no-implicit-coercion": "error",
|
|
|
|
"no-implied-eval": "error",
|
|
|
|
"no-invalid-this": "error",
|
|
|
|
"no-iterator": "error",
|
|
|
|
"no-labels": "error",
|
|
|
|
"no-lone-blocks": "error",
|
|
|
|
"no-loop-func": "error",
|
|
|
|
"no-multi-spaces": "error",
|
|
|
|
"no-multi-str": "error",
|
|
|
|
"no-new": "error",
|
|
|
|
"no-new-func": "error",
|
|
|
|
"no-new-wrappers": "error",
|
|
|
|
"no-octal-escape": "error",
|
|
|
|
"no-param-reassign": "error",
|
|
|
|
"no-proto": "error",
|
|
|
|
"no-return-await": "error",
|
|
|
|
"no-script-url": "error",
|
|
|
|
"no-self-compare": "error",
|
|
|
|
"no-sequences": "error",
|
|
|
|
"no-unmodified-loop-condition": "error",
|
|
|
|
"no-unused-expressions": "error",
|
|
|
|
"no-useless-call": "error",
|
|
|
|
"no-useless-catch": "error",
|
|
|
|
"no-useless-concat": "error",
|
|
|
|
"no-useless-return": "error",
|
|
|
|
"no-void": "error",
|
|
|
|
"no-with": "error",
|
|
|
|
"radix": "warn",
|
|
|
|
"require-await": "error",
|
|
|
|
"require-unicode-regexp": "error",
|
|
|
|
"wrap-iife": "error",
|
|
|
|
"yoda": "error",
|
|
|
|
"no-label-var": "error",
|
|
|
|
"no-shadow": "error",
|
|
|
|
"no-shadow-restricted-names": "error",
|
|
|
|
"no-undef": "off",
|
|
|
|
"no-unused-vars": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"vars": "local",
|
2021-12-13 20:07:02 +00:00
|
|
|
"args": "after-used"
|
2019-03-25 17:25:21 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-use-before-define": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"functions": false,
|
|
|
|
"variables": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"array-bracket-spacing": "error",
|
|
|
|
"block-spacing": "error",
|
2019-04-01 20:46:45 +00:00
|
|
|
"brace-style": [
|
|
|
|
"error",
|
|
|
|
"1tbs",
|
|
|
|
{
|
|
|
|
"allowSingleLine": true
|
|
|
|
}
|
|
|
|
],
|
2022-02-06 18:16:13 +00:00
|
|
|
"camelcase": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allow": ["sha512_256"]
|
|
|
|
}
|
|
|
|
],
|
2019-03-26 09:15:13 +00:00
|
|
|
"capitalized-comments": [
|
|
|
|
"error",
|
|
|
|
"always",
|
|
|
|
{
|
2019-03-30 21:19:26 +00:00
|
|
|
"ignoreConsecutiveComments": true
|
2019-03-26 09:15:13 +00:00
|
|
|
}
|
|
|
|
],
|
2019-03-25 17:25:21 +00:00
|
|
|
"comma-spacing": "error",
|
|
|
|
"comma-style": "error",
|
|
|
|
"computed-property-spacing": "error",
|
|
|
|
"consistent-this": "error",
|
|
|
|
"func-call-spacing": "error",
|
|
|
|
"id-blacklist": [
|
|
|
|
"error",
|
|
|
|
"ret",
|
2019-03-31 09:45:43 +00:00
|
|
|
"helper",
|
2019-04-04 12:12:39 +00:00
|
|
|
"temp",
|
|
|
|
"tmp"
|
2019-03-25 17:25:21 +00:00
|
|
|
],
|
2021-06-09 03:47:25 +00:00
|
|
|
"indent": ["warn", 2, { "SwitchCase": 1 }],
|
2019-03-25 17:25:21 +00:00
|
|
|
"key-spacing": "error",
|
|
|
|
"keyword-spacing": "error",
|
|
|
|
"line-comment-position": "error",
|
|
|
|
"lines-between-class-members": [
|
|
|
|
"error",
|
|
|
|
"always",
|
|
|
|
{
|
|
|
|
"exceptAfterSingleLine": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"max-depth": "warn",
|
|
|
|
"max-len": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"code": 120
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"max-params": "warn",
|
|
|
|
"max-statements-per-line": "error",
|
|
|
|
"multiline-comment-style": [
|
|
|
|
"error",
|
|
|
|
"separate-lines"
|
|
|
|
],
|
|
|
|
"new-parens": "error",
|
|
|
|
"no-array-constructor": "warn",
|
|
|
|
"no-bitwise": "warn",
|
|
|
|
"no-inline-comments": "error",
|
|
|
|
"no-lonely-if": "error",
|
|
|
|
"no-mixed-spaces-and-tabs": "error",
|
|
|
|
"no-multi-assign": "warn",
|
|
|
|
"no-multiple-empty-lines": "error",
|
|
|
|
"no-negated-condition": "error",
|
|
|
|
"no-nested-ternary": "error",
|
|
|
|
"no-new-object": "error",
|
|
|
|
"no-tabs": "error",
|
2021-11-12 23:00:25 +00:00
|
|
|
"no-trailing-spaces": "warn",
|
2019-03-25 17:25:21 +00:00
|
|
|
"no-unneeded-ternary": "error",
|
|
|
|
"no-whitespace-before-property": "error",
|
|
|
|
"object-curly-spacing": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"operator-assignment": "error",
|
|
|
|
"operator-linebreak": [
|
|
|
|
"error",
|
2019-03-30 21:19:26 +00:00
|
|
|
"after",
|
|
|
|
{
|
|
|
|
"overrides": {
|
|
|
|
"?": "before",
|
|
|
|
":": "before"
|
|
|
|
}
|
|
|
|
}
|
2019-03-25 17:25:21 +00:00
|
|
|
],
|
|
|
|
"quotes": [
|
|
|
|
"error",
|
|
|
|
"double",
|
|
|
|
{
|
|
|
|
"avoidEscape": true,
|
|
|
|
"allowTemplateLiterals": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"semi": "warn",
|
|
|
|
"semi-spacing": "error",
|
|
|
|
"space-before-blocks": "error",
|
|
|
|
"space-before-function-paren": [
|
|
|
|
"error",
|
|
|
|
"never"
|
|
|
|
],
|
|
|
|
"space-in-parens": "error",
|
|
|
|
"space-infix-ops": "error",
|
|
|
|
"spaced-comment": "error",
|
2019-04-16 16:38:21 +00:00
|
|
|
"strict": [
|
|
|
|
"error",
|
|
|
|
"global"
|
|
|
|
],
|
2019-03-25 17:25:21 +00:00
|
|
|
"switch-colon-spacing": "error",
|
|
|
|
"template-tag-spacing": "error",
|
|
|
|
"arrow-body-style": "error",
|
|
|
|
"arrow-parens": [
|
|
|
|
"error",
|
|
|
|
"as-needed"
|
|
|
|
],
|
|
|
|
"arrow-spacing": "error",
|
2019-03-30 21:30:27 +00:00
|
|
|
"no-confusing-arrow": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allowParens": true
|
|
|
|
}
|
|
|
|
],
|
2019-03-25 17:25:21 +00:00
|
|
|
"no-duplicate-imports": "error",
|
|
|
|
"no-useless-computed-key": "error",
|
|
|
|
"no-useless-constructor": "error",
|
|
|
|
"no-var": "error",
|
|
|
|
"object-shorthand": "error",
|
|
|
|
"prefer-arrow-callback": "error",
|
|
|
|
"prefer-const": "error",
|
|
|
|
"prefer-rest-params": "error",
|
|
|
|
"prefer-spread": "error",
|
|
|
|
"rest-spread-spacing": "error",
|
2019-04-15 07:37:44 +00:00
|
|
|
"template-curly-spacing": "error",
|
|
|
|
"prefer-template": "error"
|
2019-03-25 17:25:21 +00:00
|
|
|
}
|
2019-03-26 09:15:13 +00:00
|
|
|
}
|