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 globals: { 23 expect: true, 24 sinon: true, 25 }, 26 overrides: [ 27 { 28 files: [ 29 '**/__tests__/*.{j,t}s?(x)', 30 '**/tests/unit/**/*.spec.{j,t}s?(x)', 31 ], 32 env: { 33 jest: true, 34 }, 35 }, 36 ], 37}; 38