@@ -4,19 +4,30 @@ module.exports = {
44 node : true ,
55 } ,
66 plugins : [ "prettier" ] ,
7- extends : [ "plugin:vue/essential" , "@vue/airbnb " , "plugin:prettier/recommended" ] ,
7+ extends : [ "plugin:vue/vue3- essential" , "eslint:recommended " , "plugin:prettier/recommended" ] ,
88 rules : {
99 "prettier/prettier" : "warn" ,
10- "no-console" : process . env . NODE_ENV === "production" ? "error" : "off " ,
11- "no-debugger" : process . env . NODE_ENV === "production" ? "error" : "off " ,
10+ "no-console" : process . env . NODE_ENV === "production" ? "error" : "warn " ,
11+ "no-debugger" : process . env . NODE_ENV === "production" ? "error" : "warn " ,
1212 "no-underscore-dangle" : "off" ,
1313 "no-plusplus" : "off" ,
1414 "max-len" : [ 2 , 120 , 8 ] ,
1515 "no-restricted-syntax" : "off" ,
1616 "guard-for-in" : "off" ,
1717 "no-case-declarations" : "off" ,
18+ "no-use-before-define" : "off" ,
19+ "vue/multi-word-component-names" : 0 ,
20+ "no-promise-executor-return" : 0 ,
1821 } ,
22+ overrides : [
23+ {
24+ files : [ "**/__tests__/*.{j,t}s?(x)" , "**/tests/unit/**/*.spec.{j,t}s?(x)" ] ,
25+ env : {
26+ mocha : true ,
27+ } ,
28+ } ,
29+ ] ,
1930 parserOptions : {
20- parser : "babel- eslint" ,
31+ parser : "@ babel/ eslint-parser " ,
2132 } ,
2233} ;
0 commit comments