Add Prettier working along ESLint

This commit is contained in:
2020-12-03 19:22:20 +01:00
parent 973fabafa3
commit b82b9db99a
3 changed files with 45 additions and 103 deletions

View File

@@ -1,28 +1,22 @@
module.exports = {
root: true,
env: {
node: true,
node: true
},
extends: [
'plugin:vue/essential',
'@vue/airbnb',
],
extends: ["plugin:vue/essential", "plugin:prettier/recommended", "eslint:recommended"],
parserOptions: {
parser: 'babel-eslint',
parser: "babel-eslint"
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
files: ["**/__tests__/*.{j,t}s?(x)", "**/tests/unit/**/*.spec.{j,t}s?(x)"],
env: {
jest: true,
},
},
],
jest: true
}
}
]
};