build: update linters
This commit is contained in:
+12
-7
@@ -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
@@ -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
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user