@@ -3,45 +3,19 @@ module.exports = {
3
3
env : {
4
4
browser : true ,
5
5
node : true ,
6
- 'cypress/globals' : true
6
+ 'cypress/globals' : true ,
7
7
} ,
8
8
parserOptions : {
9
9
parser : 'babel-eslint' ,
10
- sourceType : 'module'
11
10
} ,
12
11
extends : [
13
- 'eslint:recommended' ,
14
- // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
15
- // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
16
12
'@nuxtjs' ,
17
- 'prettier' ,
18
- 'prettier/vue' ,
19
13
'plugin:prettier/recommended' ,
20
- 'plugin:nuxt/recommended'
14
+ 'plugin:nuxt/recommended' ,
21
15
] ,
22
- // required to lint *.vue files
23
16
plugins : [ 'prettier' , 'cypress' ] ,
17
+ // add your custom rules here
24
18
rules : {
25
- semi : [ 2 , 'never' ] ,
26
- 'no-console' : 'warn' ,
27
- 'no-debugger' : 'warn' ,
28
- 'no-unused-vars' : 'warn' ,
29
- 'vue/no-unused-components' : 'warn' ,
30
- 'vue/max-attributes-per-line' : 'off' ,
31
- 'vue/singleline-html-element-content-newline' : 'off' ,
32
- 'vue/multiline-html-element-content-newline' : 'off' ,
33
- 'vue/component-name-in-template-casing' : [
34
- 'warn' ,
35
- 'PascalCase' ,
36
- { ignores : [ 'nuxt' , 'nuxt-link' , 'no-ssr' , 'component' , 'transition' ] }
37
- ] ,
38
- 'prettier/prettier' : [
39
- 'error' ,
40
- {
41
- singleQuote : true ,
42
- semi : false ,
43
- endOfLine : 'auto'
44
- }
45
- ]
46
- }
19
+ 'import/no-named-as-default' : 'off' ,
20
+ } ,
47
21
}
0 commit comments