| | |
| | | root: true, |
| | | env: { |
| | | browser: true, |
| | | node: true |
| | | node: true, |
| | | }, |
| | | extends: [ |
| | | 'plugin:vue/essential', |
| | | '@vue/standard', |
| | | '@vue/typescript/recommended', |
| | | '@vue/prettier', |
| | | '@vue/prettier/@typescript-eslint', |
| | | "plugin:vue/essential", |
| | | "@vue/standard", |
| | | "@vue/typescript/recommended", |
| | | "@vue/prettier", |
| | | "@vue/prettier/@typescript-eslint", |
| | | ], |
| | | parserOptions: { |
| | | ecmaVersion: 2020 |
| | | ecmaVersion: 2020, |
| | | }, |
| | | globals: { |
| | | _czc: true |
| | | _czc: true, |
| | | BMapGL: true, |
| | | }, |
| | | rules: { |
| | | 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', |
| | | 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', |
| | | 'camelcase': 'off', |
| | | 'comma-dangle': 'off', |
| | | '@typescript-eslint/no-explicit-any': 'off', |
| | | '@typescript-eslint/camelcase': 'off', |
| | | '@typescript-eslint/no-empty-function': 'off', |
| | | 'lines-between-class-members': 'off', |
| | | '@typescript-eslint/no-this-alias': [ |
| | | "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", |
| | | "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", |
| | | camelcase: "off", |
| | | "comma-dangle": "off", |
| | | "@typescript-eslint/no-explicit-any": "off", |
| | | "@typescript-eslint/camelcase": "off", |
| | | "@typescript-eslint/no-empty-function": "off", |
| | | "lines-between-class-members": "off", |
| | | "@typescript-eslint/no-this-alias": [ |
| | | "error", |
| | | { |
| | | "allowDestructuring": true, |
| | | "allowedNames": ["that", "self"] |
| | | } |
| | | ] |
| | | allowDestructuring: true, |
| | | allowedNames: ["that", "self"], |
| | | }, |
| | | ], |
| | | }, |
| | | } |
| | | }; |