@tb-dev/eslint-config 6.2.2 → 6.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -754,6 +754,7 @@ async function typescript(options) {
754
754
  "@typescript-eslint/no-floating-promises": [
755
755
  "error",
756
756
  {
757
+ allowForKnownSafeCalls: options.knownSafeCalls ?? [],
757
758
  allowForKnownSafePromises: options.knownSafePromises ?? [],
758
759
  checkThenables: false,
759
760
  ignoreIIFE: true,
package/dist/index.d.ts CHANGED
@@ -33,9 +33,17 @@ declare interface ConfigOptions {
33
33
  unicorn?: Rules;
34
34
  vue?: Rules;
35
35
  };
36
- /** @see https://typescript-eslint.io/rules/no-floating-promises#allowforknownsafepromises */
36
+ /**
37
+ * @see https://typescript-eslint.io/rules/no-floating-promises/#allowforknownsafecalls
38
+ */
39
+ knownSafeCalls?: KnownSafeCalls[];
40
+ /**
41
+ * @see https://typescript-eslint.io/rules/no-floating-promises#allowforknownsafepromises
42
+ */
37
43
  knownSafePromises?: KnownSafePromise[];
38
- /** @see https://github.com/jsx-eslint/eslint-plugin-react#configuration */
44
+ /**
45
+ * @see https://github.com/jsx-eslint/eslint-plugin-react#configuration
46
+ */
39
47
  reactVersion?: string;
40
48
  }
41
49
 
@@ -64,6 +72,12 @@ declare interface Ignores {
64
72
  ignores: string[];
65
73
  }
66
74
 
75
+ declare interface KnownSafeCalls {
76
+ from: string;
77
+ name: string;
78
+ path: string;
79
+ }
80
+
67
81
  declare interface KnownSafePromise {
68
82
  from: string;
69
83
  name: string;
package/dist/index.js CHANGED
@@ -750,6 +750,7 @@ async function typescript(options) {
750
750
  "@typescript-eslint/no-floating-promises": [
751
751
  "error",
752
752
  {
753
+ allowForKnownSafeCalls: options.knownSafeCalls ?? [],
753
754
  allowForKnownSafePromises: options.knownSafePromises ?? [],
754
755
  checkThenables: false,
755
756
  ignoreIIFE: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/eslint-config",
3
- "version": "6.2.2",
3
+ "version": "6.2.3",
4
4
  "description": "ESLint config",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,28 +22,28 @@
22
22
  "vue"
23
23
  ],
24
24
  "dependencies": {
25
- "@typescript-eslint/eslint-plugin": "^8.20.0",
26
- "@typescript-eslint/parser": "^8.20.0",
25
+ "@typescript-eslint/eslint-plugin": "^8.21.0",
26
+ "@typescript-eslint/parser": "^8.21.0",
27
27
  "eslint-plugin-perfectionist": "^4.6.0",
28
28
  "eslint-plugin-react": "^7.37.4",
29
29
  "eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
30
30
  "eslint-plugin-react-hooks": "^5.1.0",
31
- "eslint-plugin-svelte": "^3.0.0-next.14",
32
- "eslint-plugin-tailwindcss": "^3.17.5",
31
+ "eslint-plugin-svelte": "^3.0.0-next.15",
32
+ "eslint-plugin-tailwindcss": "^3.18.0",
33
33
  "eslint-plugin-unicorn": "^56.0.1",
34
34
  "eslint-plugin-vue": "^9.32.0",
35
35
  "globals": "^15.14.0",
36
- "svelte": "^5.17.5",
37
- "svelte-eslint-parser": "^1.0.0-next.11",
36
+ "svelte": "^5.19.0",
37
+ "svelte-eslint-parser": "^1.0.0-next.13",
38
38
  "vue-eslint-parser": "^9.4.3"
39
39
  },
40
40
  "devDependencies": {
41
- "@types/node": "^22.10.6",
41
+ "@types/node": "^22.10.7",
42
42
  "eslint": "^9.18.0",
43
43
  "prettier": "^3.4.2",
44
44
  "tslib": "^2.8.1",
45
45
  "typescript": "^5.7.3",
46
- "vite": "^6.0.7",
46
+ "vite": "^6.0.9",
47
47
  "vite-plugin-dts": "^4.5.0"
48
48
  },
49
49
  "peerDependencies": {