@@ -2,32 +2,68 @@ module.exports = {
22 root : true ,
33
44 env : {
5- node : true
5+ node : true ,
66 } ,
77
88 extends : [
99 'plugin:vue/vue3-recommended' ,
10- 'eslint:recommended' ,
11- '@vue/prettier'
10+ '@vue/airbnb' ,
1211 ] ,
1312
1413 parserOptions : {
15- ecmaVersion : 2020
14+ ecmaVersion : 2020 ,
1615 } ,
1716
1817 rules : {
19- 'no-console' : [
20- 'warn' ,
21- {
22- allow : [ 'error' , 'info' ]
23- }
24- ] ,
18+ 'no-console' :
19+ process . env . NODE_ENV === 'production'
20+ ? 'warn'
21+ : 'off' ,
2522 'no-debugger' :
2623 process . env . NODE_ENV === 'production'
2724 ? 'warn'
2825 : 'off' ,
29- 'vue/no-v-html' : 'off' ,
26+ semi : 'warn' ,
27+ 'comma-dangle' : 'warn' ,
3028 'vue/no-unused-components' : 'warn' ,
31- 'no-unused-vars' : 'warn'
32- }
33- }
29+ 'vue/html-indent' : 'warn' ,
30+ 'vue/html-self-closing' : 'warn' ,
31+ 'vue/no-v-html' : 'off' ,
32+ 'no-unused-vars' : 'off' ,
33+ 'import/prefer-default-export' : 'off' ,
34+ 'class-methods-use-this' : 'off' ,
35+ 'vuejs-accessibility/mouse-events-have-key-events' : 'off' ,
36+ 'vuejs-accessibility/click-events-have-key-events' : 'off' ,
37+ 'func-names' : 'off' ,
38+ 'import/no-cycle' : 'off' ,
39+ 'vue/max-len' : [
40+ 'error' ,
41+ {
42+ code : 150 ,
43+ ignoreComments : true ,
44+ ignoreUrls : true ,
45+ } ,
46+ ] ,
47+ 'import/extensions' : [
48+ 'error' ,
49+ 'ignorePackages' ,
50+ {
51+ js : 'never' ,
52+ jsx : 'never' ,
53+ ts : 'never' ,
54+ tsx : 'never' ,
55+ } ,
56+ ] ,
57+ } ,
58+ settings : {
59+ 'import/resolver' : {
60+ alias : {
61+ extensions : [ '.js' , '.jsx' , '.ts' , '.tsx' ] ,
62+ map : [
63+ [ '@' , './src' ] ,
64+ [ '@formbricks' , './node_modules/@formbricks' ] ,
65+ ] ,
66+ } ,
67+ } ,
68+ } ,
69+ } ;
0 commit comments