.eslintrc.js
module.exports = {
root: true,
env: { node: true },
extends: [
'plugin:jest/recommended',
'plugin:jest-formatting/recommended',
'plugin:vue/recommended',
'eslint:recommended',
'prettier',
],
plugins: ['jest-formatting'],
parserOptions: { parser: 'babel-eslint' },
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'object-curly-newline': ['error', { multiline: true }],
},
overrides: [
{
files: ['**/*.spec.{j,t}s?(x)'],
env: { jest: true },
},
],
};