Skip to content

Commit ec2437b

Browse files
committed
Linting plugins package
1 parent 5a51012 commit ec2437b

62 files changed

Lines changed: 753 additions & 537 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/plugins/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"generate-web-workers": "node ./config/webworkers.build.js",
1313
"watch": "tsc --watch",
1414
"clean": "npx rimraf dist",
15+
"lint": "eslint src --ext .ts,.tsx",
1516
"purge": "npx rimraf node_modules dist .turbo",
1617
"test": "jest --config=./config/jest.config.js",
1718
"validateI18nFiles": "node ./scripts/validate-plugin-i18n.js",
@@ -46,8 +47,17 @@
4647
"@types/randomcolor": "catalog:",
4748
"@types/react": "catalog:",
4849
"@types/sinon": "^21.0.0",
50+
"@typescript-eslint/eslint-plugin": "catalog:",
51+
"@typescript-eslint/parser": "catalog:",
4952
"concurrently": "^9.2.1",
5053
"copyfiles": "catalog:",
54+
"eslint": "catalog:",
55+
"eslint-config-airbnb": "catalog:",
56+
"eslint-config-airbnb-base": "catalog:",
57+
"eslint-plugin-import": "catalog:",
58+
"eslint-plugin-jsx-a11y": "catalog:",
59+
"eslint-plugin-react": "catalog:",
60+
"eslint-webpack-plugin": "catalog:",
5161
"jest": "catalog:",
5262
"md5-file": "catalog:",
5363
"npm-run-all": "catalog:",

packages/plugins/src/countries/Australia/names.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ const lastNames = [
269269
'Murphy',
270270
'Murray',
271271
'Nguyen',
272-
"O'Brien",
272+
'O\'Brien',
273273
'Parker',
274274
'Pearce',
275275
'Phillips',

packages/plugins/src/countries/Belgium/bundle.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const Belgium: GetCountryData = (i18n) => ({
160160
'Roux-Miroir',
161161
'Beauvechain',
162162
'Hamme-Mille',
163-
"l'Ecluse",
163+
'l\'Ecluse',
164164
'Nodebais',
165165
'Tourinnes-la-Grosse',
166166
'Bonlez',
@@ -444,7 +444,7 @@ const Belgium: GetCountryData = (i18n) => ({
444444
'Oteppe',
445445
'HŽron',
446446
'Lavoir',
447-
"Waret-l'Evque",
447+
'Waret-l\'Evque',
448448
'Couthuin',
449449
'Acosse',
450450
'Ambresin',
@@ -619,7 +619,7 @@ const Belgium: GetCountryData = (i18n) => ({
619619
'Jamioulx',
620620
'Marbaix',
621621
'Nalinnes',
622-
"Fontaine-l'Evque",
622+
'Fontaine-l\'Evque',
623623
'Forchies-la-Marche',
624624
'Leernes',
625625
'Anderlues',
@@ -679,7 +679,7 @@ const Belgium: GetCountryData = (i18n) => ({
679679
'Baileux',
680680
'Bourlers',
681681
'Forges',
682-
"l'Escaillre",
682+
'l\'Escaillre',
683683
'Rizes',
684684
'Grandrieu',
685685
'Montbliart',
@@ -706,7 +706,7 @@ const Belgium: GetCountryData = (i18n) => ({
706706
'Mont-Sainte-Genevive',
707707
'Sars-la-Buissire',
708708
'Bienne-lez-Happart',
709-
"Bersillies-l'Abbaye",
709+
'Bersillies-l\'Abbaye',
710710
'Erquelinnes',
711711
'Grand-Reng',
712712
'Hantes-WihŽries',

packages/plugins/src/countries/Canada/bundle.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ const Canada: GetCountryData = (i18n) => ({
228228
'Harrison Hot Springs',
229229
'Hope',
230230
'Houston',
231-
"Hudson's Hope",
231+
'Hudson\'s Hope',
232232
'Kelowna',
233233
'Kent',
234234
'Kimberly',
@@ -321,9 +321,9 @@ const Canada: GetCountryData = (i18n) => ({
321321
regionSlug: 'newfoundland_and_labrador',
322322
weight: 2,
323323
cities: [
324-
"St. John's",
324+
'St. John\'s',
325325
'Springdale',
326-
"Spaniard's Bay",
326+
'Spaniard\'s Bay',
327327
'Rigolet',
328328
'Paradise',
329329
'Mount Pearl',
@@ -366,7 +366,7 @@ const Canada: GetCountryData = (i18n) => ({
366366
'Rae-Edzo',
367367
'Paulatuk',
368368
'Norman Wells',
369-
"Lutsel K'e",
369+
'Lutsel K\'e',
370370
'Kakisa',
371371
'Inuvik',
372372
'Holman',
@@ -588,7 +588,7 @@ const Canada: GetCountryData = (i18n) => ({
588588
'Sherbrooke',
589589
'Valcourt',
590590
'Anjou',
591-
"Baie-D'Urfé",
591+
'Baie-D\'Urfé',
592592
'Beaconsfield',
593593
'Côte Saint-Luc',
594594
'Dollard-des-Ormeaux',
@@ -612,7 +612,7 @@ const Canada: GetCountryData = (i18n) => ({
612612
'Buckingham',
613613
'Cantley',
614614
'Chelsea',
615-
"Collines-de-l'Outaouais",
615+
'Collines-de-l\'Outaouais',
616616
'Gatineau',
617617
'Hull',
618618
'Ville de Maniwaki',

packages/plugins/src/countries/Chile/bundle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const Chile: GetCountryData = (i18n) => ({
125125
]
126126
},
127127
{
128-
regionName: "O'Higgins",
128+
regionName: 'O\'Higgins',
129129
regionShort: 'VI',
130130
regionSlug: 'ohiggins',
131131
weight: 511,
@@ -368,7 +368,7 @@ const Chile: GetCountryData = (i18n) => ({
368368
regionShort: 'XIV',
369369
regionSlug: 'aisen',
370370
weight: 60,
371-
cities: ['Coihaique', 'Lago Verde', 'Aisén', 'Cisnes', 'Guaitecas', 'Cochrane', "O'Higgins", 'Tortel', 'Chile Chico', 'Río Ibáñez']
371+
cities: ['Coihaique', 'Lago Verde', 'Aisén', 'Cisnes', 'Guaitecas', 'Cochrane', 'O\'Higgins', 'Tortel', 'Chile Chico', 'Río Ibáñez']
372372
},
373373
{
374374
regionName: 'Magallanes y Antártica Chilena',

packages/plugins/src/countries/France/bundle.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const France: GetCountryData = (i18n) => ({
4141
]
4242
},
4343
{
44-
regionName: "Provence-Alpes-Côte d'Azur",
44+
regionName: 'Provence-Alpes-Côte d\'Azur',
4545
regionShort: 'PR',
4646
regionSlug: 'provence_alpes',
4747
weight: 9.6,
@@ -80,7 +80,7 @@ const France: GetCountryData = (i18n) => ({
8080
'Dunkerque',
8181
'Tourcoing',
8282
'Calais',
83-
"Villeneuve-d'Ascq",
83+
'Villeneuve-d\'Ascq',
8484
'Valenciennes',
8585
'Boulogne-sur-Mer',
8686
'Douai',
@@ -133,7 +133,7 @@ const France: GetCountryData = (i18n) => ({
133133
'Agen',
134134
'Mont-de-Marsan',
135135
'Périgueux',
136-
"Villenave-d'Ornon",
136+
'Villenave-d\'Ornon',
137137
'Saint-Médard-en-Jalles',
138138
'Bergerac',
139139
'Biarritz',

0 commit comments

Comments
 (0)