.eslintrc.js 620 Bytes
Newer Older
xulili's avatar
xulili committed
1 2 3 4 5 6 7
module.exports = {
  root: true,
  env: {
    node: true
  },
  'extends': [
    'plugin:vue/essential',
8
    // '@vue/standard'
xulili's avatar
xulili committed
9 10
  ],
  rules: {
11 12
    // 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    // 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
13
    'no-unused-vars': 'off',
14
    // "quotes": [1, "single"],//引号类型 `` "" ''
xulili's avatar
xulili committed
15 16 17
  },
  parserOptions: {
    parser: 'babel-eslint'
Z's avatar
Z committed
18 19 20 21 22 23 24 25 26 27 28 29
  },
  overrides: [
    {
      files: [
        '**/__tests__/*.{j,t}s?(x)',
        '**/tests/unit/**/*.spec.{j,t}s?(x)'
      ],
      env: {
        jest: true
      }
    }
  ]
xulili's avatar
xulili committed
30
}