Skip to content

Commit 374ea04

Browse files
committed
build: update linters
1 parent 6ece5c0 commit 374ea04

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

.eslintrc.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,28 @@ module.exports = {
33
env: {
44
node: true,
55
},
6-
extends: ["plugin:vue/vue3-recommended", "eslint:recommended", "@vue/prettier"],
6+
extends: [
7+
'plugin:vue/vue3-recommended',
8+
'eslint:recommended',
9+
'@vue/prettier',
10+
'plugin:prettier/recommended',
11+
],
712
parserOptions: {
8-
parser: "babel-eslint",
13+
parser: 'babel-eslint',
914
},
1015
rules: {
11-
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
12-
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
16+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
17+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
1318
},
1419
overrides: [
1520
{
1621
files: [
17-
"**/__tests__/*.{j,t}s?(x)",
18-
"**/tests/unit/**/*.spec.{j,t}s?(x)",
22+
'**/__tests__/*.{j,t}s?(x)',
23+
'**/tests/unit/**/*.spec.{j,t}s?(x)',
1924
],
2025
env: {
2126
jest: true,
2227
},
2328
},
2429
],
25-
};
30+
}

.prettierrc.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// module.exports = {
2-
// semi: false,
3-
// trailingComma: "all",
4-
// singleQuote: true,
5-
// tabWidth: 2
6-
// };
1+
module.exports = {
2+
// jsxBracketSameLine: true,
3+
semi: false,
4+
trailingComma: "all",
5+
singleQuote: true,
6+
tabWidth: 2
7+
};

0 commit comments

Comments
 (0)