@tommy-mitchell/eslint-config-xo 2.0.0-beta.4 → 2.0.0-beta.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tommy-mitchell/eslint-config-xo",
3
- "version": "2.0.0-beta.4",
3
+ "version": "2.0.0-beta.6",
4
4
  "description": "Personal config for XO.",
5
5
  "keywords": [
6
6
  "nodejs",
package/src/index.js CHANGED
@@ -3,4 +3,5 @@ export { default as next } from "./next.js";
3
3
  export { default as react } from "./react.js";
4
4
  // TODO: only load if tailwind is installed
5
5
  export { default as tailwind } from "./tailwind.js";
6
+ export { default as tanstack } from "./tanstack.js";
6
7
  export { default as xo } from "./xo.js";
package/src/tanstack.js CHANGED
@@ -16,4 +16,22 @@ export default [
16
16
  "createLazyRoute",
17
17
  ],
18
18
  }),
19
+ {
20
+ rules: {
21
+ "@typescript-eslint/only-throw-error": ["error", {
22
+ allow: [{
23
+ from: "package",
24
+ name: "Redirect",
25
+ package: "@tanstack/router-core",
26
+ }, {
27
+ from: "package",
28
+ name: "NotFoundError",
29
+ package: "@tanstack/router-core",
30
+ }],
31
+ // https://github.com/xojs/eslint-config-xo/blob/55b6ae18731cc30599057de401fd711ff9f5cb8c/source/typescript-rules.js#L476-L483
32
+ allowThrowingAny: false,
33
+ allowThrowingUnknown: true,
34
+ }],
35
+ },
36
+ },
19
37
  ];