build: update linters

This commit is contained in:
Łukasz Holeczek
2021-08-27 00:06:54 +02:00
parent 6ece5c009c
commit 374ea047ba
2 changed files with 19 additions and 13 deletions
+12 -7
View File
@@ -3,23 +3,28 @@ module.exports = {
env: {
node: true,
},
extends: ["plugin:vue/vue3-recommended", "eslint:recommended", "@vue/prettier"],
extends: [
'plugin:vue/vue3-recommended',
'eslint:recommended',
'@vue/prettier',
'plugin:prettier/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)",
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: {
jest: true,
},
},
],
};
}
+7 -6
View File
@@ -1,6 +1,7 @@
// module.exports = {
// semi: false,
// trailingComma: "all",
// singleQuote: true,
// tabWidth: 2
// };
module.exports = {
// jsxBracketSameLine: true,
semi: false,
trailingComma: "all",
singleQuote: true,
tabWidth: 2
};