@conorroberts/utils 0.0.39 → 0.0.42

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.
@@ -23,6 +23,7 @@
23
23
  ],
24
24
  "settings": {},
25
25
  "rules": {
26
+ "@typescript-eslint/no-floating-promises": "off",
26
27
  "@typescript-eslint/no-explicit-any": "error",
27
28
  "@typescript-eslint/no-non-null-assertion": "error",
28
29
  "react/button-has-type": "deny",
@@ -1,20 +1,20 @@
1
- import * as oxlint29 from "oxlint";
1
+ import * as oxlint15 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/jsx-component-pascal-case.d.ts
4
- declare const jsxComponentPascalCaseRule: oxlint29.Rule;
4
+ declare const jsxComponentPascalCaseRule: oxlint15.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "jsx-component-pascal-case": oxlint29.Rule;
10
+ "jsx-component-pascal-case": oxlint15.Rule;
11
11
  };
12
12
  }
13
- type RuleContext = oxlint29.Context;
14
- type ESTNode = oxlint29.ESTree.Node;
15
- type ESTExpression = oxlint29.ESTree.Expression;
16
- type ReturnStatementNode = oxlint29.ESTree.ReturnStatement;
17
- type FunctionLikeNode = oxlint29.ESTree.Function | oxlint29.ESTree.ArrowFunctionExpression;
13
+ type RuleContext = oxlint15.Context;
14
+ type ESTNode = oxlint15.ESTree.Node;
15
+ type ESTExpression = oxlint15.ESTree.Expression;
16
+ type ReturnStatementNode = oxlint15.ESTree.ReturnStatement;
17
+ type FunctionLikeNode = oxlint15.ESTree.Function | oxlint15.ESTree.ArrowFunctionExpression;
18
18
  type FunctionContext = {
19
19
  node: FunctionLikeNode;
20
20
  name: string;
@@ -1,20 +1,20 @@
1
- import * as oxlint5 from "oxlint";
1
+ import * as oxlint35 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-component-date-instantiation.d.ts
4
- declare const noComponentDateInstantiationRule: oxlint5.Rule;
4
+ declare const noComponentDateInstantiationRule: oxlint35.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "no-component-date-instantiation": oxlint5.Rule;
10
+ "no-component-date-instantiation": oxlint35.Rule;
11
11
  };
12
12
  }
13
- type RuleContext = oxlint5.Context;
14
- type ESTNode = oxlint5.ESTree.Node;
15
- type NewExpressionNode = oxlint5.ESTree.NewExpression;
16
- type ReturnStatementNode = oxlint5.ESTree.ReturnStatement;
17
- type FunctionLikeNode = oxlint5.ESTree.Function | oxlint5.ESTree.ArrowFunctionExpression;
13
+ type RuleContext = oxlint35.Context;
14
+ type ESTNode = oxlint35.ESTree.Node;
15
+ type NewExpressionNode = oxlint35.ESTree.NewExpression;
16
+ type ReturnStatementNode = oxlint35.ESTree.ReturnStatement;
17
+ type FunctionLikeNode = oxlint35.ESTree.Function | oxlint35.ESTree.ArrowFunctionExpression;
18
18
  type FunctionContext = {
19
19
  node: FunctionLikeNode;
20
20
  parent: FunctionContext | null;
@@ -1,16 +1,16 @@
1
- import * as oxlint37 from "oxlint";
1
+ import * as oxlint29 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-emoji.d.ts
4
- declare const noEmojiRule: oxlint37.Rule;
4
+ declare const noEmojiRule: oxlint29.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "no-emoji": oxlint37.Rule;
10
+ "no-emoji": oxlint29.Rule;
11
11
  };
12
12
  }
13
- type ESTNode = oxlint37.ESTree.Node;
13
+ type ESTNode = oxlint29.ESTree.Node;
14
14
  //#endregion
15
15
  export { ESTNode, _default as default, noEmojiRule };
16
16
  //# sourceMappingURL=no-emoji.d.mts.map
@@ -1,16 +1,16 @@
1
- import * as oxlint0 from "oxlint";
1
+ import * as oxlint12 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-finally.d.ts
4
- declare const noFinallyRule: oxlint0.Rule;
4
+ declare const noFinallyRule: oxlint12.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "no-finally": oxlint0.Rule;
10
+ "no-finally": oxlint12.Rule;
11
11
  };
12
12
  }
13
- type ESTNode = oxlint0.ESTree.Node;
13
+ type ESTNode = oxlint12.ESTree.Node;
14
14
  //#endregion
15
15
  export { ESTNode, _default as default, noFinallyRule };
16
16
  //# sourceMappingURL=no-finally.d.mts.map
@@ -1,27 +1,27 @@
1
- import * as oxlint16 from "oxlint";
1
+ import * as oxlint0 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-inline-components.d.ts
4
4
  declare function isComponentName(name: unknown): name is string;
5
5
  declare function isHookName(name: unknown): name is string;
6
6
  declare function getEnclosingFunction(node: ESTNode | null | undefined): FunctionLikeNode | null;
7
7
  declare function getFunctionName(node: FunctionLikeNode): string;
8
- declare const noInlineComponentsRule: oxlint16.Rule;
8
+ declare const noInlineComponentsRule: oxlint0.Rule;
9
9
  declare namespace _default {
10
10
  namespace meta {
11
11
  let name: string;
12
12
  }
13
13
  let rules: {
14
- "no-inline-components": oxlint16.Rule;
14
+ "no-inline-components": oxlint0.Rule;
15
15
  };
16
16
  }
17
- type RuleContext = oxlint16.Context;
18
- type ESTNode = oxlint16.ESTree.Node;
19
- type ESTExpression = oxlint16.ESTree.Expression;
20
- type ESTPattern = oxlint16.ESTree.Pattern;
21
- type ReturnStatementNode = oxlint16.ESTree.ReturnStatement;
22
- type VariableDeclaratorNode = oxlint16.ESTree.VariableDeclarator;
23
- type AssignmentExpressionNode = oxlint16.ESTree.AssignmentExpression;
24
- type FunctionLikeNode = oxlint16.ESTree.Function | oxlint16.ESTree.ArrowFunctionExpression;
17
+ type RuleContext = oxlint0.Context;
18
+ type ESTNode = oxlint0.ESTree.Node;
19
+ type ESTExpression = oxlint0.ESTree.Expression;
20
+ type ESTPattern = oxlint0.ESTree.Pattern;
21
+ type ReturnStatementNode = oxlint0.ESTree.ReturnStatement;
22
+ type VariableDeclaratorNode = oxlint0.ESTree.VariableDeclarator;
23
+ type AssignmentExpressionNode = oxlint0.ESTree.AssignmentExpression;
24
+ type FunctionLikeNode = oxlint0.ESTree.Function | oxlint0.ESTree.ArrowFunctionExpression;
25
25
  type RecordedAssignment = {
26
26
  node: ESTExpression;
27
27
  names: string[];
@@ -1,16 +1,16 @@
1
- import * as oxlint40 from "oxlint";
1
+ import * as oxlint26 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-react-namespace.d.ts
4
- declare const noReactNamespaceRule: oxlint40.Rule;
4
+ declare const noReactNamespaceRule: oxlint26.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "no-react-namespace": oxlint40.Rule;
10
+ "no-react-namespace": oxlint26.Rule;
11
11
  };
12
12
  }
13
- type ESTNode = oxlint40.ESTree.Node;
13
+ type ESTNode = oxlint26.ESTree.Node;
14
14
  //#endregion
15
15
  export { ESTNode, _default as default, noReactNamespaceRule };
16
16
  //# sourceMappingURL=no-react-namespace.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as oxlint27 from "oxlint";
1
+ import * as oxlint10 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-switch-plugin.d.ts
4
4
  declare namespace _default {
@@ -6,10 +6,10 @@ declare namespace _default {
6
6
  let name: string;
7
7
  }
8
8
  let rules: {
9
- "no-switch": oxlint27.Rule;
9
+ "no-switch": oxlint10.Rule;
10
10
  };
11
11
  }
12
- type ESTNode = oxlint27.ESTree.Node;
12
+ type ESTNode = oxlint10.ESTree.Node;
13
13
  //#endregion
14
14
  export { ESTNode, _default as default };
15
15
  //# sourceMappingURL=no-switch-plugin.d.mts.map
@@ -1,16 +1,16 @@
1
- import * as oxlint13 from "oxlint";
1
+ import * as oxlint32 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-top-level-let.d.ts
4
- declare const noTopLevelLetRule: oxlint13.Rule;
4
+ declare const noTopLevelLetRule: oxlint32.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "no-top-level-let": oxlint13.Rule;
10
+ "no-top-level-let": oxlint32.Rule;
11
11
  };
12
12
  }
13
- type ESTNode = oxlint13.ESTree.Node;
13
+ type ESTNode = oxlint32.ESTree.Node;
14
14
  //#endregion
15
15
  export { ESTNode, _default as default, noTopLevelLetRule };
16
16
  //# sourceMappingURL=no-top-level-let.d.mts.map
@@ -1,16 +1,16 @@
1
- import * as oxlint2 from "oxlint";
1
+ import * as oxlint23 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-type-cast.d.ts
4
- declare const noTypeCastRule: oxlint2.Rule;
4
+ declare const noTypeCastRule: oxlint23.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "no-type-cast": oxlint2.Rule;
10
+ "no-type-cast": oxlint23.Rule;
11
11
  };
12
12
  }
13
- type ESTNode = oxlint2.ESTree.Node;
13
+ type ESTNode = oxlint23.ESTree.Node;
14
14
  //#endregion
15
15
  export { ESTNode, _default as default, noTypeCastRule };
16
16
  //# sourceMappingURL=no-type-cast.d.mts.map
package/package.json CHANGED
@@ -8,51 +8,51 @@
8
8
  ],
9
9
  "exports": {
10
10
  "./env": {
11
- "types": "./dist/env.d.ts",
12
- "default": "./dist/env.js"
11
+ "types": "./dist/env.d.mts",
12
+ "default": "./dist/env.mjs"
13
13
  },
14
14
  "./images": {
15
- "types": "./dist/images.d.ts",
16
- "default": "./dist/images.js"
15
+ "types": "./dist/images.d.mts",
16
+ "default": "./dist/images.mjs"
17
17
  },
18
18
  "./oxlint/config": {
19
- "default": "./dist/oxlint/config.json"
19
+ "default": "./dist/oxlint/config.mjson"
20
20
  },
21
21
  "./oxlint/jsx-component-pascal-case": {
22
- "types": "./dist/oxlint/jsx-component-pascal-case.d.ts",
23
- "default": "./dist/oxlint/jsx-component-pascal-case.js"
22
+ "types": "./dist/oxlint/jsx-component-pascal-case.d.mts",
23
+ "default": "./dist/oxlint/jsx-component-pascal-case.mjs"
24
24
  },
25
25
  "./oxlint/no-component-date-instantiation": {
26
- "types": "./dist/oxlint/no-component-date-instantiation.d.ts",
27
- "default": "./dist/oxlint/no-component-date-instantiation.js"
26
+ "types": "./dist/oxlint/no-component-date-instantiation.d.mts",
27
+ "default": "./dist/oxlint/no-component-date-instantiation.mjs"
28
28
  },
29
29
  "./oxlint/no-emoji": {
30
- "types": "./dist/oxlint/no-emoji.d.ts",
31
- "default": "./dist/oxlint/no-emoji.js"
30
+ "types": "./dist/oxlint/no-emoji.d.mts",
31
+ "default": "./dist/oxlint/no-emoji.mjs"
32
32
  },
33
33
  "./oxlint/no-finally": {
34
- "types": "./dist/oxlint/no-finally.d.ts",
35
- "default": "./dist/oxlint/no-finally.js"
34
+ "types": "./dist/oxlint/no-finally.d.mts",
35
+ "default": "./dist/oxlint/no-finally.mjs"
36
36
  },
37
37
  "./oxlint/no-inline-components": {
38
- "types": "./dist/oxlint/no-inline-components.d.ts",
39
- "default": "./dist/oxlint/no-inline-components.js"
38
+ "types": "./dist/oxlint/no-inline-components.d.mts",
39
+ "default": "./dist/oxlint/no-inline-components.mjs"
40
40
  },
41
41
  "./oxlint/no-react-namespace": {
42
- "types": "./dist/oxlint/no-react-namespace.d.ts",
43
- "default": "./dist/oxlint/no-react-namespace.js"
42
+ "types": "./dist/oxlint/no-react-namespace.d.mts",
43
+ "default": "./dist/oxlint/no-react-namespace.mjs"
44
44
  },
45
45
  "./oxlint/no-switch-plugin": {
46
- "types": "./dist/oxlint/no-switch-plugin.d.ts",
47
- "default": "./dist/oxlint/no-switch-plugin.js"
46
+ "types": "./dist/oxlint/no-switch-plugin.d.mts",
47
+ "default": "./dist/oxlint/no-switch-plugin.mjs"
48
48
  },
49
49
  "./oxlint/no-top-level-let": {
50
- "types": "./dist/oxlint/no-top-level-let.d.ts",
51
- "default": "./dist/oxlint/no-top-level-let.js"
50
+ "types": "./dist/oxlint/no-top-level-let.d.mts",
51
+ "default": "./dist/oxlint/no-top-level-let.mjs"
52
52
  },
53
53
  "./oxlint/no-type-cast": {
54
- "types": "./dist/oxlint/no-type-cast.d.ts",
55
- "default": "./dist/oxlint/no-type-cast.js"
54
+ "types": "./dist/oxlint/no-type-cast.d.mts",
55
+ "default": "./dist/oxlint/no-type-cast.mjs"
56
56
  }
57
57
  },
58
58
  "dependencies": {
@@ -73,7 +73,7 @@
73
73
  "typescript": "5.9.3",
74
74
  "vitest": "4.0.15"
75
75
  },
76
- "version": "0.0.39",
76
+ "version": "0.0.42",
77
77
  "scripts": {
78
78
  "dev": "tsdown --watch",
79
79
  "build": "tsc --noEmit && tsdown",