Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit c38d434

Browse files
update dependencies
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
1 parent c74673c commit c38d434

File tree

5 files changed

+363
-404
lines changed

5 files changed

+363
-404
lines changed

base-config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ const config = {
3333
'prettier',
3434
],
3535
rules: {
36-
'@next/next/no-img-element': 0,
36+
camelcase: 'off', // super annoying for API's
37+
'@next/next/no-img-element': 0, // next/image is not supported for SSG
38+
'arrow-body-style': 0, // really annoying when writing functional react components
3739
'capitalized-comments': ['off'],
3840
'comma-dangle': ['error', 'always-multiline'],
3941
'default-case': ['off'],
@@ -87,6 +89,7 @@ const config = {
8789
'react/no-danger': 'warn',
8890
'react/no-deprecated': 'warn',
8991
'react/no-unescaped-entities': 0,
92+
'react/no-unused-prop-types': 0, // this can be buggy with typescript
9093
'react/prop-types': 0,
9194
'react/react-in-jsx-scope': 0,
9295
'react/state-in-constructor': 'warn',

config-ts.json

+31-17
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,26 @@
3333
],
3434
"reportUnusedDisableDirectives": true,
3535
"rules": {
36+
"camelcase": [
37+
"off",
38+
{
39+
"properties": "always",
40+
"ignoreDestructuring": false,
41+
"ignoreImports": false,
42+
"ignoreGlobals": false
43+
}
44+
],
3645
"@next/next/no-img-element": [
3746
0
3847
],
48+
"arrow-body-style": [
49+
0
50+
],
3951
"capitalized-comments": [
4052
"off",
4153
"always",
4254
{
43-
"ignorePattern": "pragma|ignore|prettier-ignore|webpack\\w+:|c8",
55+
"ignorePattern": "pragma|ignore|prettier-ignore|webpack\\w+:|c8|type-coverage:",
4456
"ignoreInlineComments": true,
4557
"ignoreConsecutiveComments": true
4658
}
@@ -209,6 +221,9 @@
209221
"react/no-unescaped-entities": [
210222
0
211223
],
224+
"react/no-unused-prop-types": [
225+
0
226+
],
212227
"react/prop-types": [
213228
0
214229
],
@@ -439,7 +454,12 @@
439454
"always"
440455
],
441456
"@typescript-eslint/prefer-nullish-coalescing": [
442-
"off"
457+
"off",
458+
{
459+
"ignoreTernaryTests": false,
460+
"ignoreConditionalTests": false,
461+
"ignoreMixedLogicalExpressions": false
462+
}
443463
],
444464
"@typescript-eslint/prefer-optional-chain": [
445465
"warn"
@@ -610,6 +630,15 @@
610630
"objectLiteralTypeAssertions": "allow-as-parameter"
611631
}
612632
],
633+
"@typescript-eslint/consistent-type-exports": [
634+
"error",
635+
{
636+
"fixMixedExportsWithInlineTypeSpecifier": true
637+
}
638+
],
639+
"@typescript-eslint/consistent-type-imports": [
640+
"error"
641+
],
613642
"func-call-spacing": [
614643
"off",
615644
"never"
@@ -647,15 +676,6 @@
647676
}
648677
}
649678
],
650-
"camelcase": [
651-
"off",
652-
{
653-
"properties": "always",
654-
"ignoreDestructuring": false,
655-
"ignoreImports": false,
656-
"ignoreGlobals": false
657-
}
658-
],
659679
"@typescript-eslint/no-base-to-string": [
660680
"error"
661681
],
@@ -1602,9 +1622,6 @@
16021622
"react/no-unsafe": [
16031623
"error"
16041624
],
1605-
"react/no-unused-prop-types": [
1606-
"error"
1607-
],
16081625
"react/no-unused-state": [
16091626
"error"
16101627
],
@@ -2044,9 +2061,6 @@
20442061
}
20452062
}
20462063
],
2047-
"arrow-body-style": [
2048-
"error"
2049-
],
20502064
"no-class-assign": [
20512065
"error"
20522066
],

config.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,26 @@
2929
],
3030
"reportUnusedDisableDirectives": true,
3131
"rules": {
32+
"camelcase": [
33+
"off",
34+
{
35+
"properties": "always",
36+
"ignoreDestructuring": false,
37+
"ignoreImports": false,
38+
"ignoreGlobals": false
39+
}
40+
],
3241
"@next/next/no-img-element": [
3342
0
3443
],
44+
"arrow-body-style": [
45+
0
46+
],
3547
"capitalized-comments": [
3648
"off",
3749
"always",
3850
{
39-
"ignorePattern": "pragma|ignore|prettier-ignore|webpack\\w+:|c8",
51+
"ignorePattern": "pragma|ignore|prettier-ignore|webpack\\w+:|c8|type-coverage:",
4052
"ignoreInlineComments": true,
4153
"ignoreConsecutiveComments": true
4254
}
@@ -205,6 +217,9 @@
205217
"react/no-unescaped-entities": [
206218
0
207219
],
220+
"react/no-unused-prop-types": [
221+
0
222+
],
208223
"react/prop-types": [
209224
0
210225
],
@@ -898,9 +913,6 @@
898913
"react/no-unsafe": [
899914
"error"
900915
],
901-
"react/no-unused-prop-types": [
902-
"error"
903-
],
904916
"react/no-unused-state": [
905917
"error"
906918
],
@@ -1336,15 +1348,6 @@
13361348
"querystring",
13371349
"colors"
13381350
],
1339-
"camelcase": [
1340-
"error",
1341-
{
1342-
"properties": "always",
1343-
"ignoreDestructuring": false,
1344-
"ignoreImports": false,
1345-
"ignoreGlobals": false
1346-
}
1347-
],
13481351
"func-name-matching": [
13491352
"error",
13501353
{
@@ -1441,9 +1444,6 @@
14411444
}
14421445
}
14431446
],
1444-
"arrow-body-style": [
1445-
"error"
1446-
],
14471447
"constructor-super": [
14481448
"error"
14491449
],

package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@
1515
"preversion": "npm run build"
1616
},
1717
"dependencies": {
18-
"@typescript-eslint/eslint-plugin": "5.30.7",
19-
"@typescript-eslint/parser": "5.30.7",
18+
"@typescript-eslint/eslint-plugin": "5.37.0",
19+
"@typescript-eslint/parser": "5.37.0",
2020
"eslint-formatter-pretty": "4.1.0",
2121
"eslint-plugin-import": "2.26.0",
2222
"eslint-plugin-prettier": "4.2.1",
23-
"eslint-plugin-promise": "6.0.0",
24-
"eslint-plugin-react": "7.30.1",
23+
"eslint-plugin-promise": "6.0.1",
24+
"eslint-plugin-react": "7.31.8",
2525
"eslint-plugin-react-hooks": "4.6.0",
2626
"eslint-plugin-react-native": "4.0.0",
27-
"eslint-plugin-unicorn": "42.0.0",
28-
"prettier": "2.6.2"
27+
"eslint-plugin-unicorn": "43.0.2",
28+
"prettier": "2.7.1"
2929
},
3030
"devDependencies": {
31-
"eslint": "8.20.0",
31+
"eslint": "8.23.1",
3232
"eslint-config-prettier": "8.5.0",
33-
"eslint-config-xo": "0.41.0",
33+
"eslint-config-xo": "0.42.0",
3434
"eslint-config-xo-react": "0.27.0",
35-
"eslint-config-xo-typescript": "0.52.0",
36-
"np": "7.6.1",
37-
"typescript": "4.7.2"
35+
"eslint-config-xo-typescript": "0.53.0",
36+
"np": "7.6.2",
37+
"typescript": "4.8.3"
3838
},
3939
"peerDependencies": {
4040
"eslint": "^8.13.0"

0 commit comments

Comments
 (0)