@@ -6,107 +6,107 @@ module.exports = {
66 worker : true ,
77 } ,
88 extends : [
9- ' eslint:recommended' ,
10- ' plugin:@typescript-eslint/eslint-recommended' ,
11- ' plugin:@typescript-eslint/recommended' ,
12- ' plugin:@typescript-eslint/recommended-requiring-type-checking' ,
13- ' plugin:@typescript-eslint/strict' ,
14- ' plugin:react/recommended' ,
15- ' plugin:react/jsx-runtime' ,
16- ' plugin:import/recommended' ,
17- ' plugin:import/typescript' ,
18- ' plugin:jsx-a11y/recommended' ,
19- ' plugin:playwright/playwright-test' ,
20- ' plugin:sonarjs/recommended' ,
21- ' plugin:typescript-sort-keys/recommended' ,
9+ " eslint:recommended" ,
10+ " plugin:@typescript-eslint/eslint-recommended" ,
11+ " plugin:@typescript-eslint/recommended" ,
12+ " plugin:@typescript-eslint/recommended-requiring-type-checking" ,
13+ " plugin:@typescript-eslint/strict" ,
14+ " plugin:react/recommended" ,
15+ " plugin:react/jsx-runtime" ,
16+ " plugin:import/recommended" ,
17+ " plugin:import/typescript" ,
18+ " plugin:jsx-a11y/recommended" ,
19+ " plugin:playwright/playwright-test" ,
20+ " plugin:sonarjs/recommended" ,
21+ " plugin:typescript-sort-keys/recommended" ,
2222 // HINT: prettier must be the last extension to work
23- ' plugin:prettier/recommended' ,
23+ " plugin:prettier/recommended" ,
2424 ] ,
25- ignorePatterns : [ ' build' , ' dist' , ' docker' , ' node_modules' , ' openshift' , ' public' ] ,
25+ ignorePatterns : [ " build" , "dev- dist" , "dist" , " docker" , " node_modules" , " openshift" , " public" ] ,
2626 overrides : [
2727 {
28- files : [ ' *.ts' , ' *.tsx' ] ,
28+ files : [ " *.ts" , " *.tsx" ] ,
2929 rules : {
30- ' no-undef' : ' off' ,
31- ' no-unused-vars' : ' off' ,
30+ " no-undef" : " off" ,
31+ " no-unused-vars" : " off" ,
3232 } ,
3333 } ,
3434 ] ,
35- parser : ' @typescript-eslint/parser' ,
35+ parser : " @typescript-eslint/parser" ,
3636 parserOptions : {
37- project : [ ' ./tsconfig.json' ] ,
37+ project : [ " ./tsconfig.json" ] ,
3838 tsconfigRootDir : __dirname ,
3939 } ,
4040 plugins : [
41- ' @typescript-eslint' ,
42- ' jsx-a11y' ,
43- ' react-hooks' ,
44- ' react' ,
45- ' sonarjs' ,
46- ' sort-keys-fix' ,
47- ' typescript-sort-keys' ,
41+ " @typescript-eslint" ,
42+ " jsx-a11y" ,
43+ " react-hooks" ,
44+ " react" ,
45+ " sonarjs" ,
46+ " sort-keys-fix" ,
47+ " typescript-sort-keys" ,
4848 // HINT: prettier must be the last plugin to work
49- ' prettier' ,
49+ " prettier" ,
5050 ] ,
5151 rules : {
52- ' @typescript-eslint/consistent-type-definitions' : [ ' error' , ' type' ] ,
53- ' @typescript-eslint/no-floating-promises' : [ ' error' , { ignoreVoid : true } ] ,
54- ' @typescript-eslint/no-misused-promises' : [
55- ' error' ,
52+ " @typescript-eslint/consistent-type-definitions" : [ " error" , " type" ] ,
53+ " @typescript-eslint/no-floating-promises" : [ " error" , { ignoreVoid : true } ] ,
54+ " @typescript-eslint/no-misused-promises" : [
55+ " error" ,
5656 {
5757 checksVoidReturn : false ,
5858 } ,
5959 ] ,
60- ' @typescript-eslint/no-unused-vars' : [
61- ' warn' ,
60+ " @typescript-eslint/no-unused-vars" : [
61+ " warn" ,
6262 {
63- argsIgnorePattern : '^_' ,
64- caughtErrorsIgnorePattern : '^_' ,
65- varsIgnorePattern : '^_' ,
63+ argsIgnorePattern : "^_" ,
64+ caughtErrorsIgnorePattern : "^_" ,
65+ varsIgnorePattern : "^_" ,
6666 } ,
6767 ] ,
68- ' @typescript-eslint/sort-type-union-intersection-members' : ' error' ,
69- camelcase : ' warn' ,
70- curly : ' error' ,
71- ' import/no-unused-modules' : [
72- ' error' ,
68+ " @typescript-eslint/sort-type-union-intersection-members" : " error" ,
69+ camelcase : " warn" ,
70+ curly : " error" ,
71+ " import/no-unused-modules" : [
72+ " error" ,
7373 {
7474 ignoreExports : [
75- ' playwright/index.ts' ,
76- ' src/index.tsx' ,
77- ' src/**/*.d.ts' ,
78- ' src/**/*.{spec,test}.{ts,tsx}' ,
79- ' *.{js,ts}' , // mostly configuration files
75+ " playwright/index.ts" ,
76+ " src/index.tsx" ,
77+ " src/**/*.d.ts" ,
78+ " src/**/*.{spec,test}.{ts,tsx}" ,
79+ " *.{js,ts}" , // mostly configuration files
8080 ] ,
8181 missingExports : true ,
82- src : [ '.' ] ,
82+ src : [ "." ] ,
8383 unusedExports : true ,
8484 } ,
8585 ] ,
86- ' import/order' : [
87- ' error' ,
86+ " import/order" : [
87+ " error" ,
8888 {
8989 alphabetize : {
9090 caseInsensitive : true ,
91- order : ' asc' ,
91+ order : " asc" ,
9292 } ,
93- groups : [ ' builtin' , ' external' , ' internal' ] ,
93+ groups : [ " builtin" , " external" , " internal" ] ,
9494 pathGroups : [
9595 {
96- group : ' external' ,
97- pattern : ' react' ,
98- position : ' before' ,
96+ group : " external" ,
97+ pattern : " react" ,
98+ position : " before" ,
9999 } ,
100100 ] ,
101- pathGroupsExcludedImportTypes : [ ' react' ] ,
101+ pathGroupsExcludedImportTypes : [ " react" ] ,
102102 } ,
103103 ] ,
104- ' import/prefer-default-export' : ' off' ,
105- ' no-console' : [ ' warn' , { allow : [ ' warn' , ' error' ] } ] ,
106- ' prettier/prettier' : ' error' ,
107- ' react/jsx-sort-default-props' : ' error' ,
108- ' react/jsx-sort-props' : [
109- ' error' ,
104+ " import/prefer-default-export" : " off" ,
105+ " no-console" : [ " warn" , { allow : [ " warn" , " error" ] } ] ,
106+ " prettier/prettier" : " error" ,
107+ " react/jsx-sort-default-props" : " error" ,
108+ " react/jsx-sort-props" : [
109+ " error" ,
110110 {
111111 callbacksLast : true ,
112112 ignoreCase : true ,
@@ -116,34 +116,34 @@ module.exports = {
116116 shorthandLast : false ,
117117 } ,
118118 ] ,
119- ' react-hooks/exhaustive-deps' : ' error' ,
120- ' react-hooks/rules-of-hooks' : ' error' ,
121- ' sort-imports' : [
122- ' error' ,
119+ " react-hooks/exhaustive-deps" : " error" ,
120+ " react-hooks/rules-of-hooks" : " error" ,
121+ " sort-imports" : [
122+ " error" ,
123123 {
124124 ignoreCase : true ,
125125 ignoreDeclarationSort : true ,
126126 ignoreMemberSort : false ,
127127 } ,
128128 ] ,
129129 // Required to fix sort-keys automatically, since this is not done by default.
130- ' sort-keys-fix/sort-keys-fix' : [
131- ' error' ,
132- ' asc' ,
130+ " sort-keys-fix/sort-keys-fix" : [
131+ " error" ,
132+ " asc" ,
133133 {
134134 caseSensitive : false ,
135135 natural : true ,
136136 } ,
137137 ] ,
138138 } ,
139139 settings : {
140- ' import/resolver' : {
140+ " import/resolver" : {
141141 typescript : {
142142 alwaysTryTypes : true ,
143143 } ,
144144 } ,
145145 react : {
146- version : ' detect' ,
146+ version : " detect" ,
147147 } ,
148148 } ,
149149} ;
0 commit comments