File tree 3 files changed +9
-28
lines changed
3 files changed +9
-28
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- root : true ,
3
- env : {
4
- node : true ,
5
- } ,
6
- extends : [
7
- 'plugin:vue/vue3-essential' ,
8
- 'eslint:recommended' ,
9
- 'plugin:prettier/recommended' ,
10
- ] ,
11
- parserOptions : {
12
- parser : '@babel/eslint-parser' ,
13
- } ,
2
+ extends : [ "plugin:vue/vue3-recommended" , "eslint:recommended" ] ,
14
3
rules : {
15
- 'no-console' : process . env . NODE_ENV === 'production' ? 'warn' : 'off' ,
16
- 'no-debugger' : process . env . NODE_ENV === 'production' ? 'warn' : 'off' ,
17
- 'vue/multi-word-component-names' : 'off' ,
4
+ "no-console" : process . env . NODE_ENV === "production" ? "warn" : "off" ,
5
+ "no-debugger" : process . env . NODE_ENV === "production" ? "warn" : "off" ,
18
6
} ,
19
- overrides : [
20
- {
21
- files : [
22
- '**/__tests__/*.{j,t}s?(x)' ,
23
- '**/tests/unit/**/*.spec.{j,t}s?(x)' ,
24
- ] ,
25
- env : {
26
- jest : true ,
27
- } ,
28
- } ,
29
- ] ,
30
- }
7
+ } ;
Original file line number Diff line number Diff line change @@ -2,5 +2,6 @@ module.exports = {
2
2
semi : false ,
3
3
trailingComma : "all" ,
4
4
singleQuote : true ,
5
- tabWidth : 2
5
+ printWidth : 100 ,
6
+ tabWidth : 2 ,
6
7
} ;
Original file line number Diff line number Diff line change 14
14
"scripts" : {
15
15
"dev" : " vite" ,
16
16
"build" : " vite build" ,
17
+ "lint" : " eslint \" src/**/*.{js,vue}\" " ,
17
18
"preview" : " vite preview"
18
19
},
19
20
"dependencies" : {
30
31
},
31
32
"devDependencies" : {
32
33
"@vitejs/plugin-vue" : " ^4.2.3" ,
34
+ "eslint" : " ^8.50.0" ,
35
+ "eslint-plugin-vue" : " ^9.17.0" ,
33
36
"sass" : " ^1.68.0" ,
34
37
"vite" : " ^4.4.5"
35
38
}
You can’t perform that action at this time.
0 commit comments