1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
| module.exports = {
| env: {
| browser: true,
| es2021: true
| },
| extends: ['standard', 'plugin:vue/recommended'],
| overrides: [
| {
| env: {
| node: true
| },
| files: ['.eslintrc.{js,cjs}'],
| parserOptions: {
| sourceType: 'script'
| }
| }
| ],
| parserOptions: {
| ecmaVersion: 2021,
| sourceType: 'module',
| parser: 'babel-eslint',
| ecmaFeatures: {
| // 非 react 项目关闭 jsx 语法校验,默认为 true
| jsx: false
| }
| },
| globals: {
| AMap: true,
| AMapUI: true
| },
| plugins: ['vue'],
| 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': 'off'
| }
| }
|
|