@@ -3,47 +3,27 @@ module.exports = {
3
3
// This option interrupts the configuration hierarchy at this file
4
4
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
5
5
root : true ,
6
-
7
6
parserOptions : {
8
7
parser : '@babel/eslint-parser' ,
9
- ecmaVersion : 2018 , // Allows for the parsing of modern ECMAScript features
8
+ ecmaVersion : 2018 ,
9
+ // Allows for the parsing of modern ECMAScript features
10
10
sourceType : 'module' // Allows for the use of imports
11
- } ,
12
11
12
+ } ,
13
13
env : {
14
14
browser : true
15
15
} ,
16
-
17
16
// Rules order is important, please avoid shuffling them
18
- extends : [
19
- // Base ESLint recommended rules
20
- // 'eslint:recommended',
21
-
22
-
23
- // Uncomment any of the lines below to choose desired strictness,
24
- // but leave only one uncommented!
25
- // See https://eslint.vuejs.org/rules/#available-rules
26
- 'plugin:vue/vue3-essential' , // Priority A: Essential (Error Prevention)
27
- // 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
28
- // 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
29
-
30
- // https://github.com/prettier/eslint-config-prettier#installation
31
- // usage with Prettier, provided by 'eslint-config-prettier'.
32
- 'prettier'
17
+ extends : [ "plugin:vue/vue3-essential" , "prettier" , "plugin:storybook/recommended" ] ,
18
+ plugins : [ // https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-file
19
+ // required to lint *.vue files
20
+ 'vue' // https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-509292674
21
+ // Prettier has not been included as plugin to avoid performance impact
22
+ // add it as an extension for your IDE
33
23
] ,
34
-
35
- plugins : [
36
- // https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-file
37
- // required to lint *.vue files
38
- 'vue' ,
39
-
40
- // https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-509292674
41
- // Prettier has not been included as plugin to avoid performance impact
42
- // add it as an extension for your IDE
43
- ] ,
44
-
45
24
globals : {
46
- ga : 'readonly' , // Google Analytics
25
+ ga : 'readonly' ,
26
+ // Google Analytics
47
27
cordova : 'readonly' ,
48
28
__statics : 'readonly' ,
49
29
__QUASAR_SSR__ : 'readonly' ,
@@ -54,13 +34,10 @@ module.exports = {
54
34
Capacitor : 'readonly' ,
55
35
chrome : 'readonly'
56
36
} ,
57
-
58
37
// add your custom rules here
59
38
rules : {
60
39
'prefer-promise-reject-errors' : 'off' ,
61
-
62
-
63
40
// allow debugger during development only
64
41
'no-debugger' : process . env . NODE_ENV === 'production' ? 'error' : 'off'
65
42
}
66
- }
43
+ } ;
0 commit comments