@@ -4,150 +4,122 @@ module.exports = {
44 node : true ,
55 } ,
66 extends : [
7- " eslint:recommended" ,
8- " plugin:@typescript-eslint/recommended" ,
9- " plugin:react/recommended" ,
10- " plugin:react-hooks/recommended" ,
11- " prettier" ,
7+ ' eslint:recommended' ,
8+ ' plugin:@typescript-eslint/recommended' ,
9+ ' plugin:react/recommended' ,
10+ ' plugin:react-hooks/recommended' ,
11+ ' prettier' ,
1212 ] ,
1313 globals : {
1414 JSX : true ,
1515 React : true ,
1616 } ,
1717 ignorePatterns : [
1818 // Ignore dotfiles
19- " .*.js" ,
20- " node_modules/" ,
21- " dist/" ,
19+ ' .*.js' ,
20+ ' node_modules/' ,
21+ ' dist/' ,
2222 ] ,
2323 overrides : [
2424 {
25- files : [ " *.js?(x)" , " *.ts?(x)" ] ,
25+ files : [ ' *.js?(x)' , ' *.ts?(x)' ] ,
2626 } ,
2727 ] ,
28- plugins : [
29- "import" ,
30- "only-warn" ,
31- "sort-destructure-keys" ,
32- "sort-keys-plus" ,
33- "typescript-sort-keys" ,
34- "unused-imports" ,
35- ] ,
28+ plugins : [ 'import' , 'only-warn' , 'sort-destructure-keys' , 'sort-keys-plus' , 'typescript-sort-keys' , 'unused-imports' ] ,
3629 rules : {
37- " @typescript-eslint/explicit-module-boundary-types" : " off" ,
38- " @typescript-eslint/no-unused-vars" : [
39- " error" ,
30+ ' @typescript-eslint/explicit-module-boundary-types' : ' off' ,
31+ ' @typescript-eslint/no-unused-vars' : [
32+ ' error' ,
4033 {
41- argsIgnorePattern : "^_" ,
42- caughtErrorsIgnorePattern : "^_" ,
34+ argsIgnorePattern : '^_' ,
35+ caughtErrorsIgnorePattern : '^_' ,
4336 ignoreRestSiblings : true ,
44- varsIgnorePattern : "^_" ,
37+ varsIgnorePattern : '^_' ,
4538 } ,
4639 ] ,
47- curly : " error" ,
48- " import/no-cycle" : [ " warn" ] ,
49- " import/order" : [
50- " warn" ,
40+ curly : ' error' ,
41+ ' import/no-cycle' : [ ' warn' ] ,
42+ ' import/order' : [
43+ ' warn' ,
5144 {
5245 alphabetize : {
5346 caseInsensitive : false ,
54- order : " asc" ,
47+ order : ' asc' ,
5548 } ,
56- groups : [
57- "builtin" ,
58- "external" ,
59- "type" ,
60- "internal" ,
61- "parent" ,
62- "sibling" ,
63- "index" ,
64- ] ,
65- "newlines-between" : "never" ,
49+ groups : [ 'builtin' , 'external' , 'type' , 'internal' , 'parent' , 'sibling' , 'index' ] ,
50+ 'newlines-between' : 'never' ,
6651 pathGroups : [
6752 {
68- group : "external" ,
69- pattern : "react" ,
70- position : "before" ,
71- } ,
72- {
73- group : "internal" ,
74- pattern : "@modernfi/**" ,
75- position : "before" ,
76- } ,
77- {
78- group : "internal" ,
79- pattern : "flagship/**" ,
80- position : "before" ,
53+ group : 'external' ,
54+ pattern : 'react' ,
55+ position : 'before' ,
8156 } ,
8257 ] ,
83- pathGroupsExcludedImportTypes : [ " react" ] ,
58+ pathGroupsExcludedImportTypes : [ ' react' ] ,
8459 warnOnUnassignedImports : true ,
8560 } ,
8661 ] ,
87- " no-case-declarations" : " off" ,
88- " no-empty-pattern" : " off" ,
89- " no-multiple-empty-lines" : [ " error" , { max : 1 , maxBOF : 0 , maxEOF : 1 } ] ,
90- " no-unused-vars" : " off" ,
91- " react/jsx-newline" : [ " warn" , { prevent : true } ] ,
92- " react/jsx-sort-props" : [
93- " warn" ,
62+ ' no-case-declarations' : ' off' ,
63+ ' no-empty-pattern' : ' off' ,
64+ ' no-multiple-empty-lines' : [ ' error' , { max : 1 , maxBOF : 0 , maxEOF : 1 } ] ,
65+ ' no-unused-vars' : ' off' ,
66+ ' react/jsx-newline' : [ ' warn' , { prevent : true } ] ,
67+ ' react/jsx-sort-props' : [
68+ ' warn' ,
9469 {
9570 callbacksLast : false ,
9671 ignoreCase : false ,
97- locale : " auto" ,
98- multiline : " ignore" ,
72+ locale : ' auto' ,
73+ multiline : ' ignore' ,
9974 noSortAlphabetically : false ,
10075 reservedFirst : false ,
10176 shorthandFirst : false ,
10277 shorthandLast : false ,
10378 } ,
10479 ] ,
105- "react/jsx-uses-react" : "off" ,
106- "react/react-in-jsx-scope" : "off" ,
107- "react/self-closing-comp" : "error" ,
108- "react-hooks/exhaustive-deps" : "error" ,
109- "require-await" : "error" ,
110- "sort-destructure-keys/sort-destructure-keys" : [
111- "warn" ,
112- { caseSensitive : true } ,
113- ] ,
114- "sort-imports" : [
115- "warn" ,
80+ 'react/jsx-uses-react' : 'off' ,
81+ 'react/react-in-jsx-scope' : 'off' ,
82+ 'react/self-closing-comp' : 'error' ,
83+ 'react-hooks/exhaustive-deps' : 'error' ,
84+ 'require-await' : 'error' ,
85+ 'sort-destructure-keys/sort-destructure-keys' : [ 'warn' , { caseSensitive : true } ] ,
86+ 'sort-imports' : [
87+ 'warn' ,
11688 {
11789 // let import/order deal with declarations
11890 ignoreDeclarationSort : true ,
11991 } ,
12092 ] ,
121- " sort-keys-plus/sort-keys" : [
122- " warn" ,
123- " asc" ,
93+ ' sort-keys-plus/sort-keys' : [
94+ ' warn' ,
95+ ' asc' ,
12496 {
12597 allowLineSeparatedGroups : true ,
12698 natural : true ,
12799 } ,
128100 ] ,
129- " typescript-sort-keys/interface" : [
130- " warn" ,
131- " asc" ,
101+ ' typescript-sort-keys/interface' : [
102+ ' warn' ,
103+ ' asc' ,
132104 {
133105 caseSensitive : true ,
134106 natural : true ,
135107 requiredFirst : false ,
136108 } ,
137109 ] ,
138- " typescript-sort-keys/string-enum" : [
139- " warn" ,
140- " asc" ,
110+ ' typescript-sort-keys/string-enum' : [
111+ ' warn' ,
112+ ' asc' ,
141113 {
142114 caseSensitive : true ,
143115 natural : true ,
144116 } ,
145117 ] ,
146- " unused-imports/no-unused-imports" : " warn" ,
118+ ' unused-imports/no-unused-imports' : ' warn' ,
147119 } ,
148120 settings : {
149121 react : {
150- version : " detect" ,
122+ version : ' detect' ,
151123 } ,
152124 } ,
153125} ;
0 commit comments