@@ -3,38 +3,44 @@ module.exports = {
33 browser : true ,
44 commonjs : true ,
55 es2020 : true ,
6- node : true
6+ node : true ,
77 } ,
88 globals : {
9- strapi : true
9+ strapi : true ,
1010 } ,
1111 extends : [
12+ 'eslint:recommended' ,
1213 'plugin:react/recommended' ,
13- 'standard ' ,
14- 'plugin:cypress /recommended'
14+ 'plugin:cypress/recommended ' ,
15+ 'plugin:prettier /recommended' ,
1516 ] ,
1617 parserOptions : {
1718 ecmaFeatures : {
18- jsx : true
19+ jsx : true ,
1920 } ,
20- ecmaVersion : 11
21+ ecmaVersion : 11 ,
2122 } ,
22- ignorePatterns : [ 'playground/plugins' ] ,
23- plugins : [
24- 'react'
25- ] ,
23+ ignorePatterns : [ 'playground' ] ,
24+ plugins : [ 'react' , 'prettier' ] ,
2625 settings : {
2726 react : {
28- version : 'detect'
29- }
27+ version : 'detect' ,
28+ } ,
3029 } ,
3130 rules : {
32- 'react/jsx-indent' : 'error' ,
33- 'react/jsx-indent-props' : [ 2 , 2 ] ,
3431 'cypress/no-unnecessary-waiting' : 'off' ,
3532 'react/prop-types' : 'off' ,
3633 'react/jsx-closing-bracket-location' : [ 2 , 'tag-aligned' ] ,
3734 'no-unused-vars' : [ 'error' , { varsIgnorePattern : '^omit.*$' } ] ,
38- 'array-callback-return' : 'off'
39- }
35+ 'array-callback-return' : 'off' ,
36+ 'arrow-parens' : [ 'error' , 'as-needed' ] ,
37+ 'prettier/prettier' : [
38+ 'error' ,
39+ {
40+ quoteProps : 'consistent' ,
41+ semi : false ,
42+ arrowParens : 'avoid' ,
43+ } ,
44+ ] ,
45+ } ,
4046}
0 commit comments