1- import babelParser from " @babel/eslint-parser" ;
2- import scw from " @scaleway/eslint-config-react/javascript" ;
3- import scwTypescript from " @scaleway/eslint-config-react/typescript" ;
4- import globals from " globals" ;
1+ import babelParser from ' @babel/eslint-parser'
2+ import scw from ' @scaleway/eslint-config-react/javascript'
3+ import scwTypescript from ' @scaleway/eslint-config-react/typescript'
4+ import globals from ' globals'
55
66export default [
77 {
88 ignores : [
9- " **/node_modules/" ,
10- " **/dist/" ,
11- " **/build/" ,
12- " **/__typetests__/" ,
13- " **/packages_deprecated/" ,
14- " **/coverage/" ,
9+ ' **/node_modules/' ,
10+ ' **/dist/' ,
11+ ' **/build/' ,
12+ ' **/__typetests__/' ,
13+ ' **/packages_deprecated/' ,
14+ ' **/coverage/' ,
1515 ] ,
1616 } ,
1717 {
@@ -21,89 +21,89 @@ export default [
2121 } ,
2222 } ,
2323 } ,
24- ...scw . map ( ( config ) => ( { ...config , files : [ " **/*.js" ] } ) ) ,
24+ ...scw . map ( config => ( { ...config , files : [ ' **/*.js' ] } ) ) ,
2525 {
26- files : [ " **/*.js" ] ,
26+ files : [ ' **/*.js' ] ,
2727
2828 languageOptions : {
2929 parser : babelParser ,
3030 parserOptions : {
31- configFile : " ./babel.config.json" ,
31+ configFile : ' ./babel.config.json' ,
3232 } ,
3333 } ,
3434 } ,
35- ...scwTypescript . map ( ( config ) => ( {
35+ ...scwTypescript . map ( config => ( {
3636 ...config ,
37- files : [ " **/*.ts" , " **/*.tsx" ] ,
37+ files : [ ' **/*.ts' , ' **/*.tsx' ] ,
3838 } ) ) ,
3939
4040 {
41- files : [ " **/*.ts" , " **/*.tsx" ] ,
41+ files : [ ' **/*.ts' , ' **/*.tsx' ] ,
4242
4343 languageOptions : {
4444 ecmaVersion : 5 ,
45- sourceType : " script" ,
45+ sourceType : ' script' ,
4646
4747 parserOptions : {
48- project : [ " tsconfig.json" ] ,
48+ project : [ ' tsconfig.json' ] ,
4949 } ,
5050 } ,
5151 } ,
52- ...scwTypescript . map ( ( config ) => ( {
52+ ...scwTypescript . map ( config => ( {
5353 ...config ,
5454 files : [
55- " packages/changesets-renovate/**/*.ts{x,}" ,
56- " packages/validate-icu-locales/**/*.ts{x,}" ,
57- " **/__tests__/**/*.ts{x,}" ,
55+ ' packages/changesets-renovate/**/*.ts{x,}' ,
56+ ' packages/validate-icu-locales/**/*.ts{x,}' ,
57+ ' **/__tests__/**/*.ts{x,}' ,
5858 ] ,
5959
6060 languageOptions : {
6161 ecmaVersion : 5 ,
62- sourceType : " script" ,
62+ sourceType : ' script' ,
6363
6464 parserOptions : {
65- project : [ " tsconfig.json" ] ,
65+ project : [ ' tsconfig.json' ] ,
6666 } ,
6767 } ,
6868 } ) ) ,
69- ...scwTypescript . map ( ( config ) => ( {
69+ ...scwTypescript . map ( config => ( {
7070 ...config ,
7171 files : [
72- " packages/changesets-renovate/**/*.ts{x,}" ,
73- " packages/validate-icu-locales/**/*.ts{x,}" ,
74- " **/__tests__/**/*.ts{x,}" ,
72+ ' packages/changesets-renovate/**/*.ts{x,}' ,
73+ ' packages/validate-icu-locales/**/*.ts{x,}' ,
74+ ' **/__tests__/**/*.ts{x,}' ,
7575 ] ,
7676
7777 languageOptions : {
7878 ecmaVersion : 5 ,
79- sourceType : " script" ,
79+ sourceType : ' script' ,
8080
8181 parserOptions : {
82- project : [ " tsconfig.json" ] ,
82+ project : [ ' tsconfig.json' ] ,
8383 } ,
8484 } ,
8585
8686 rules : {
8787 ...config . rules ,
88- " no-console" : " off" ,
89- " @typescript-eslint/no-explicit-any" : " warn" ,
90- " @typescript-eslint/no-floating-promises" : " warn" ,
88+ ' no-console' : ' off' ,
89+ ' @typescript-eslint/no-explicit-any' : ' warn' ,
90+ ' @typescript-eslint/no-floating-promises' : ' warn' ,
9191 } ,
9292 } ) ) ,
9393
9494 {
9595 files : [
96- " packages/jest-helpers/**/*.ts{x,}" ,
97- " **/__tests__/**/*.ts{x,}" ,
98- " **/vitest.setup.ts" ,
99- " **/*.config.ts" ,
100- " **/__mocks__/**/*.ts{x,}" ,
96+ ' packages/jest-helpers/**/*.ts{x,}' ,
97+ ' **/__tests__/**/*.ts{x,}' ,
98+ ' **/vitest.setup.ts' ,
99+ ' **/*.config.ts' ,
100+ ' **/__mocks__/**/*.ts{x,}' ,
101101 ] ,
102102
103103 rules : {
104- " import/no-extraneous-dependencies" : " off" ,
105- " react/jsx-key" : " off" ,
106- " import/no-relative-packages" : " off" ,
104+ ' import/no-extraneous-dependencies' : ' off' ,
105+ ' react/jsx-key' : ' off' ,
106+ ' import/no-relative-packages' : ' off' ,
107107 } ,
108108 } ,
109- ] ;
109+ ]
0 commit comments