Skip to content

Commit 99c49b1

Browse files
authored
Merge pull request #39 from workshopbutler/update-packages
Update all packages to the latest ones
2 parents 9b5a1d6 + b62eda5 commit 99c49b1

Some content is hidden

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

46 files changed

+22539
-38100
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
[
44
"@babel/preset-env",
55
{
6-
"useBuiltIns": "usage"
6+
"useBuiltIns": "usage",
7+
"corejs": "3.20"
78
}
89
],
910
"@babel/preset-typescript"

.eslintrc.js

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,27 @@ module.exports = {
1616
"@typescript-eslint"
1717
],
1818
"rules": {
19-
"@typescript-eslint/ban-ts-ignore": 1,
19+
"@typescript-eslint/no-unsafe-member-access": "off",
20+
"@typescript-eslint/no-unsafe-call": "off",
21+
"@typescript-eslint/no-unsafe-assignment": "off",
22+
"@typescript-eslint/no-unsafe-argument": "off",
23+
"@typescript-eslint/no-unsafe-return": "off",
24+
"@typescript-eslint/no-unused-vars": "off",
25+
"@typescript-eslint/no-floating-promises": "off",
26+
"@typescript-eslint/restrict-template-expressions": "off",
27+
"@typescript-eslint/restrict-plus-operands": "off",
28+
29+
"@typescript-eslint/ban-ts-comment": [
30+
"error",
31+
{
32+
"ts-ignore": "allow-with-description",
33+
"ts-nocheck": "allow-with-description",
34+
"ts-check": "allow-with-description",
35+
"ts-expect-error": "allow-with-description",
36+
}],
2037
"@typescript-eslint/adjacent-overload-signatures": "error",
2138
"@typescript-eslint/array-type": "error",
2239
"@typescript-eslint/ban-types": "error",
23-
"@typescript-eslint/class-name-casing": "error",
2440
"@typescript-eslint/consistent-type-assertions": "error",
2541
"@typescript-eslint/consistent-type-definitions": "error",
2642
"@typescript-eslint/explicit-function-return-type": "off",
@@ -103,7 +119,31 @@ module.exports = {
103119
"error",
104120
"as-needed"
105121
],
106-
"camelcase": "error",
122+
"@typescript-eslint/naming-convention": [
123+
"error",
124+
{
125+
selector: "default",
126+
format: ["camelCase"],
127+
leadingUnderscore: "allow",
128+
},
129+
{
130+
selector: "variable",
131+
format: ["camelCase", "UPPER_CASE"]
132+
},
133+
{
134+
selector: "classProperty",
135+
modifiers: ["static"],
136+
format: ["camelCase", "UPPER_CASE"]
137+
},
138+
{
139+
selector: 'typeLike',
140+
format: ['PascalCase'],
141+
},
142+
{
143+
selector: "enumMember",
144+
format: ["PascalCase"]
145+
},
146+
],
107147
"comma-dangle": [
108148
"error",
109149
"always-multiline"
@@ -153,12 +193,8 @@ module.exports = {
153193
"no-invalid-this": "off",
154194
"no-multiple-empty-lines": "error",
155195
"no-new-wrappers": "error",
156-
"no-shadow": [
157-
"error",
158-
{
159-
"hoist": "all"
160-
}
161-
],
196+
"no-shadow": "off",
197+
"@typescript-eslint/no-shadow": ["error"],
162198
"no-throw-literal": "error",
163199
"no-trailing-spaces": "error",
164200
"no-undef-init": "error",

.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

mock/MockTransport.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
*/
77
class MockTransport {
88

9-
events = require('./data/events.json');
10-
trainers = require('./data/trainers.json');
11-
tickets = require('./data/tickets.json');
12-
forms = require('./data/forms.json');
9+
events = require('../../mock/data/events.json');
10+
trainers = require('../../mock/data/trainers.json');
11+
tickets = require('../../mock/data/tickets.json');
12+
forms = require('../../mock/data/forms.json');
1313
defaultVersion = '2021-09-26';
1414

1515
constructor() {

mock/data/forms.json

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -328,50 +328,6 @@
328328
{
329329
"instructions": "This is a test form instruction",
330330
"sections": [
331-
{
332-
"id": "ticket",
333-
"label": "Ticket",
334-
"fields": [
335-
{
336-
"name": "ticket",
337-
"type": "ticket",
338-
"required": false,
339-
"label": "Ticket"
340-
},
341-
{
342-
"name": "promo_code",
343-
"type": "text",
344-
"required": false,
345-
"label": "Promo code"
346-
}
347-
]
348-
},
349-
{
350-
"id": "payment",
351-
"label": null,
352-
"fields": [
353-
{
354-
"name": "payment_type",
355-
"type": "select",
356-
"required": true,
357-
"label": "Payment method",
358-
"options": [
359-
{
360-
"value": "Invoice",
361-
"label": "Invoice"
362-
},
363-
{
364-
"value": "Card",
365-
"label": "Card"
366-
},
367-
{
368-
"value": "PayPal",
369-
"label": "PayPal"
370-
}
371-
]
372-
}
373-
]
374-
},
375331
{
376332
"id": "general",
377333
"label": "Personal Info",

0 commit comments

Comments
 (0)