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: { env: {
node: true, node: true,
}, },
extends: ["plugin:vue/vue3-recommended", "eslint:recommended", "@vue/prettier"], extends: [
'plugin:vue/vue3-recommended',
'eslint:recommended',
'@vue/prettier',
'plugin:prettier/recommended',
],
parserOptions: { parserOptions: {
parser: "babel-eslint", parser: 'babel-eslint',
}, },
rules: { rules: {
"no-console": 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", 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
}, },
overrides: [ overrides: [
{ {
files: [ files: [
"**/__tests__/*.{j,t}s?(x)", '**/__tests__/*.{j,t}s?(x)',
"**/tests/unit/**/*.spec.{j,t}s?(x)", '**/tests/unit/**/*.spec.{j,t}s?(x)',
], ],
env: { env: {
jest: true, jest: true,
}, },
}, },
], ],
}; }
+7 -6
View File
@@ -1,6 +1,7 @@
// module.exports = { module.exports = {
// semi: false, // jsxBracketSameLine: true,
// trailingComma: "all", semi: false,
// singleQuote: true, trailingComma: "all",
// tabWidth: 2 singleQuote: true,
// }; tabWidth: 2
};