quanyawei
2023-11-23 4bced4c45dac14f20953b6f3b0326e535a99729b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
  env: {
    browser: true,
    node: true
  },
  extends: [
    // 参考vuejs官方的eslint配置: https://eslint.vuejs.org/user-guide/#usage
    'plugin:vue/recommended',
    // 覆盖 ESLint 配置,确保 prettier 放在最后
    'eslint:recommended'
  ],
  parserOptions: {
    ecmaVersion: 10,
    sourceType: 'module'
  },
  plugins: ['vue'],
  rules: {
    'space-before-function-paren': 0,
    'no-console': 'off',
    'no-unused-vars': 'off',
    'vue/attribute-hyphenation': 0 // 忽略属性连字
  }
}