1module.exports = { 2 root: true, 3 env: { 4 node: true, 5 }, 6 extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'], 7 rules: { 8 'no-prototype-builtins': 'warn', 9 'no-console': 'off', 10 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 11 'prettier/prettier': [ 12 'error', 13 { 14 singleQuote: true, 15 }, 16 ], 17 'vue/component-name-in-template-casing': ['error', 'kebab-case'], 18 'vue/custom-event-name-casing': ['warn'], 19 'vue/no-unused-vars': ['warn'], 20 }, 21 parserOptions: { 22 parser: 'babel-eslint', 23 }, 24 globals: { 25 expect: true, 26 sinon: true, 27 }, 28 overrides: [ 29 { 30 files: [ 31 '**/__tests__/*.{j,t}s?(x)', 32 '**/tests/unit/**/*.spec.{j,t}s?(x)', 33 ], 34 env: { 35 jest: true, 36 }, 37 }, 38 ], 39}; 40