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