Skip to content

Commit 3c10df3

Browse files
authored
bump js deps (#185)
* wip * wip
1 parent a51d331 commit 3c10df3

20 files changed

+1682
-1444
lines changed

README.cs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,4 +466,4 @@ instalaci a spuštění, která nyní zabere jen pár řádků.
466466

467467
Licencováno pod [MIT](LICENSE) licencí.
468468

469-
Copyright (c) 2018–2024 [Lukáš Rod](https://lukasrod.cz/)
469+
Copyright (c) 2018–2025 [Lukáš Rod](https://lukasrod.cz/)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,4 +470,4 @@ instruction could also be rapidly simplified and the app can be launched with a
470470
471471
Licensed under the [MIT](LICENSE) license.
472472
473-
Copyright (c) 2018–2024 [Lukáš Rod](https://lukasrod.cz/)
473+
Copyright (c) 2018–2025 [Lukáš Rod](https://lukasrod.cz/)

frontend/.eslintrc.js

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,5 @@
11
const restrictedGlobals = require("confusing-browser-globals")
22

3-
// vychazi z https://github.com/typescript-eslint/typescript-eslint/blob/v3.4.0/packages/eslint-plugin/docs/rules/ban-types.md
4-
// odstranuje kontrolu {} (kvuli prazdnym props v React komponentach)
5-
const defaultTypes = {
6-
String: {
7-
message: "Use string instead",
8-
fixWith: "string",
9-
},
10-
Boolean: {
11-
message: "Use boolean instead",
12-
fixWith: "boolean",
13-
},
14-
Number: {
15-
message: "Use number instead",
16-
fixWith: "number",
17-
},
18-
Symbol: {
19-
message: "Use symbol instead",
20-
fixWith: "symbol",
21-
},
22-
23-
Function: {
24-
message: [
25-
"The `Function` type accepts any function-like value.",
26-
"It provides no type safety when calling the function, which can be a common source of bugs.",
27-
"It also accepts things like class declarations, which will throw at runtime as they will not be called with `new`.",
28-
"If you are expecting the function to accept certain arguments, you should explicitly define the function shape.",
29-
].join("\n"),
30-
},
31-
Object: {
32-
message: [
33-
'The `Object` type actually means "any non-nullish value", so it is marginally better than `unknown`.',
34-
'- If you want a type meaning "any object", you probably want `Record<string, unknown>` instead.',
35-
'- If you want a type meaning "any value", you probably want `unknown` instead.',
36-
].join("\n"),
37-
},
38-
object: {
39-
message: [
40-
"The `object` type is currently hard to use ([see this issue](https://github.com/microsoft/TypeScript/issues/21732)).",
41-
"Consider using `Record<string, unknown>` instead, as it allows you to more easily inspect and use the keys.",
42-
].join("\n"),
43-
},
44-
}
45-
463
// castecne vychazi z:
474
// https://github.com/facebook/create-react-app/blob/master/packages/eslint-config-react-app/index.js
485
module.exports = {
@@ -64,7 +21,7 @@ module.exports = {
6421
},
6522
],
6623
// ignorace souboru v urovni s konfiguraci
67-
ignorePatterns: ["/*.js", "/*.ts", "build/*", "node_modules/*"],
24+
ignorePatterns: ["/*.js", "/*.ts", "build/*", "node_modules/*", "__mocks__/*"],
6825
parserOptions: {
6926
ecmaFeatures: {
7027
jsx: true,
@@ -73,7 +30,7 @@ module.exports = {
7330
sourceType: "module",
7431

7532
tsconfigRootDir: __dirname,
76-
project: true,
33+
projectService: true,
7734
},
7835
plugins: [
7936
"import",
@@ -137,7 +94,6 @@ module.exports = {
13794
"react-hooks/rules-of-hooks": "error",
13895

13996
"@typescript-eslint/no-shadow": ["error"],
140-
"@typescript-eslint/ban-types": ["error", { types: defaultTypes, extendDefaults: false }],
14197
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
14298
"@typescript-eslint/no-explicit-any": 0,
14399
"@typescript-eslint/no-floating-promises": 0, // TODO aktivovat po oprave #66
@@ -147,6 +103,7 @@ module.exports = {
147103
"@typescript-eslint/no-unsafe-return": 0,
148104
"@typescript-eslint/no-use-before-define": ["error", { functions: false }],
149105
"@typescript-eslint/restrict-template-expressions": 0,
106+
"@typescript-eslint/no-empty-object-type": "off",
150107

151108
// vlastni pravidla camelCase,
152109
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md

0 commit comments

Comments
 (0)