@bleedingdev/modern-js-code-tools 3.5.0-ultramodern.9 → 3.5.0-ultramodern.90

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.
Files changed (49) hide show
  1. package/dist/cjs/cli/i18n-check.cjs +0 -6
  2. package/dist/cjs/cli/workspace-source-check.cjs +0 -3
  3. package/dist/cjs/oxlint-plugin/ast.cjs +181 -0
  4. package/dist/cjs/oxlint-plugin/options.cjs +172 -0
  5. package/dist/cjs/oxlint-plugin/rules/no-hardcoded-jsx-text.cjs +82 -0
  6. package/dist/cjs/oxlint-plugin/rules/no-legacy-mf-boundary-attributes.cjs +61 -0
  7. package/dist/cjs/oxlint-plugin/rules/no-literal-visible-jsx-attributes.cjs +74 -0
  8. package/dist/cjs/oxlint-plugin/rules/no-manual-locale-copy-branching.cjs +80 -0
  9. package/dist/cjs/oxlint-plugin/rules/no-split-translation-keys.cjs +70 -0
  10. package/dist/cjs/oxlint-plugin/rules/strict-effect-api-boundaries.cjs +84 -0
  11. package/dist/cjs/oxlint-plugin/types.cjs +18 -0
  12. package/dist/cjs/oxlint-plugin.cjs +100 -382
  13. package/dist/esm/cli/i18n-check.js +1 -1
  14. package/dist/esm/cli/workspace-source-check.js +1 -1
  15. package/dist/esm/oxlint-plugin/ast.js +83 -0
  16. package/dist/esm/oxlint-plugin/options.js +89 -0
  17. package/dist/esm/oxlint-plugin/rules/no-hardcoded-jsx-text.js +44 -0
  18. package/dist/esm/oxlint-plugin/rules/no-legacy-mf-boundary-attributes.js +23 -0
  19. package/dist/esm/oxlint-plugin/rules/no-literal-visible-jsx-attributes.js +36 -0
  20. package/dist/esm/oxlint-plugin/rules/no-manual-locale-copy-branching.js +42 -0
  21. package/dist/esm/oxlint-plugin/rules/no-split-translation-keys.js +32 -0
  22. package/dist/esm/oxlint-plugin/rules/strict-effect-api-boundaries.js +46 -0
  23. package/dist/esm/oxlint-plugin/types.js +0 -0
  24. package/dist/esm/oxlint-plugin.js +15 -367
  25. package/dist/esm-node/cli/i18n-check.js +1 -1
  26. package/dist/esm-node/cli/workspace-source-check.js +1 -1
  27. package/dist/esm-node/oxlint-plugin/ast.js +84 -0
  28. package/dist/esm-node/oxlint-plugin/options.js +90 -0
  29. package/dist/esm-node/oxlint-plugin/rules/no-hardcoded-jsx-text.js +45 -0
  30. package/dist/esm-node/oxlint-plugin/rules/no-legacy-mf-boundary-attributes.js +24 -0
  31. package/dist/esm-node/oxlint-plugin/rules/no-literal-visible-jsx-attributes.js +37 -0
  32. package/dist/esm-node/oxlint-plugin/rules/no-manual-locale-copy-branching.js +43 -0
  33. package/dist/esm-node/oxlint-plugin/rules/no-split-translation-keys.js +33 -0
  34. package/dist/esm-node/oxlint-plugin/rules/strict-effect-api-boundaries.js +47 -0
  35. package/dist/esm-node/oxlint-plugin/types.js +1 -0
  36. package/dist/esm-node/oxlint-plugin.js +15 -367
  37. package/dist/types/cli/i18n-check.d.ts +0 -2
  38. package/dist/types/cli/workspace-source-check.d.ts +0 -1
  39. package/dist/types/oxlint-plugin/ast.d.ts +22 -0
  40. package/dist/types/oxlint-plugin/options.d.ts +62 -0
  41. package/dist/types/oxlint-plugin/rules/no-hardcoded-jsx-text.d.ts +2 -0
  42. package/dist/types/oxlint-plugin/rules/no-legacy-mf-boundary-attributes.d.ts +2 -0
  43. package/dist/types/oxlint-plugin/rules/no-literal-visible-jsx-attributes.d.ts +2 -0
  44. package/dist/types/oxlint-plugin/rules/no-manual-locale-copy-branching.d.ts +2 -0
  45. package/dist/types/oxlint-plugin/rules/no-split-translation-keys.d.ts +2 -0
  46. package/dist/types/oxlint-plugin/rules/strict-effect-api-boundaries.d.ts +2 -0
  47. package/dist/types/oxlint-plugin/types.d.ts +60 -0
  48. package/dist/types/oxlint-plugin.d.ts +15 -56
  49. package/package.json +6 -7
@@ -0,0 +1,2 @@
1
+ import type { Rule } from '../types.ts';
2
+ export declare const createNoHardcodedJsxTextRule: () => Rule;
@@ -0,0 +1,2 @@
1
+ import type { Rule } from '../types.ts';
2
+ export declare const createNoLegacyMfBoundaryAttributesRule: () => Rule;
@@ -0,0 +1,2 @@
1
+ import type { Rule } from '../types.ts';
2
+ export declare const createNoLiteralVisibleJsxAttributesRule: () => Rule;
@@ -0,0 +1,2 @@
1
+ import type { Rule } from '../types.ts';
2
+ export declare const createNoManualLocaleCopyBranchingRule: () => Rule;
@@ -0,0 +1,2 @@
1
+ import type { Rule } from '../types.ts';
2
+ export declare const createNoSplitTranslationKeysRule: () => Rule;
@@ -0,0 +1,2 @@
1
+ import type { Rule } from '../types.ts';
2
+ export declare const createStrictEffectApiBoundariesRule: () => Rule;
@@ -0,0 +1,60 @@
1
+ export type AstNode = {
2
+ readonly type?: string;
3
+ readonly parent?: AstNode;
4
+ readonly loc?: {
5
+ readonly start?: {
6
+ readonly line?: number;
7
+ };
8
+ readonly end?: {
9
+ readonly line?: number;
10
+ };
11
+ };
12
+ readonly value?: unknown;
13
+ readonly raw?: unknown;
14
+ readonly name?: unknown;
15
+ readonly openingElement?: AstNode;
16
+ readonly expression?: AstNode;
17
+ readonly expressions?: readonly AstNode[];
18
+ readonly quasis?: readonly AstNode[];
19
+ readonly test?: AstNode;
20
+ readonly consequent?: AstNode;
21
+ readonly alternate?: AstNode;
22
+ readonly arguments?: readonly AstNode[];
23
+ readonly callee?: AstNode;
24
+ readonly object?: AstNode;
25
+ readonly property?: AstNode;
26
+ readonly computed?: boolean;
27
+ };
28
+ export type RuleContext = {
29
+ readonly options?: readonly unknown[];
30
+ readonly filename?: string;
31
+ getSourceCode?: () => {
32
+ readonly text?: string;
33
+ getAllComments?: () => readonly AstNode[];
34
+ getText?: (node: AstNode) => string;
35
+ };
36
+ report: (descriptor: {
37
+ readonly node: AstNode;
38
+ readonly message: string;
39
+ }) => void;
40
+ };
41
+ export type Rule = {
42
+ readonly meta: {
43
+ readonly type: string;
44
+ readonly docs: {
45
+ readonly description: string;
46
+ };
47
+ readonly schema: unknown[];
48
+ };
49
+ create(context: RuleContext): Record<string, (node: AstNode) => void>;
50
+ };
51
+ export type CommonRuleOptions = {
52
+ readonly allowElements: readonly string[];
53
+ readonly ignoreCommentPattern: string;
54
+ };
55
+ export type AttributeRuleOptions = CommonRuleOptions & {
56
+ readonly visibleAttributes: readonly string[];
57
+ };
58
+ export type SplitTranslationKeyRuleOptions = {
59
+ readonly translationFunctions: readonly string[];
60
+ };
@@ -1,64 +1,23 @@
1
- type AstNode = {
2
- readonly type?: string;
3
- readonly parent?: AstNode;
4
- readonly loc?: {
5
- readonly start?: {
6
- readonly line?: number;
7
- };
8
- readonly end?: {
9
- readonly line?: number;
10
- };
11
- };
12
- readonly value?: unknown;
13
- readonly raw?: unknown;
14
- readonly name?: unknown;
15
- readonly openingElement?: AstNode;
16
- readonly expression?: AstNode;
17
- readonly expressions?: readonly AstNode[];
18
- readonly quasis?: readonly AstNode[];
19
- readonly test?: AstNode;
20
- readonly consequent?: AstNode;
21
- readonly alternate?: AstNode;
22
- readonly arguments?: readonly AstNode[];
23
- readonly callee?: AstNode;
24
- readonly object?: AstNode;
25
- readonly property?: AstNode;
26
- readonly computed?: boolean;
27
- };
28
- type RuleContext = {
29
- readonly options?: readonly unknown[];
30
- readonly filename?: string;
31
- getSourceCode?: () => {
32
- readonly text?: string;
33
- getAllComments?: () => readonly AstNode[];
34
- getText?: (node: AstNode) => string;
35
- };
36
- report: (descriptor: {
37
- readonly node: AstNode;
38
- readonly message: string;
39
- }) => void;
40
- };
41
- type Rule = {
42
- readonly meta: {
43
- readonly type: string;
44
- readonly docs: {
45
- readonly description: string;
46
- };
47
- readonly schema: unknown[];
48
- };
49
- create(context: RuleContext): Record<string, (node: AstNode) => void>;
50
- };
1
+ export * from './oxlint-plugin/ast.ts';
2
+ export * from './oxlint-plugin/options.ts';
3
+ export * from './oxlint-plugin/rules/no-hardcoded-jsx-text.ts';
4
+ export * from './oxlint-plugin/rules/no-legacy-mf-boundary-attributes.ts';
5
+ export * from './oxlint-plugin/rules/no-literal-visible-jsx-attributes.ts';
6
+ export * from './oxlint-plugin/rules/no-manual-locale-copy-branching.ts';
7
+ export * from './oxlint-plugin/rules/no-split-translation-keys.ts';
8
+ export * from './oxlint-plugin/rules/strict-effect-api-boundaries.ts';
9
+ export * from './oxlint-plugin/types.ts';
51
10
  declare const plugin: {
52
11
  meta: {
53
12
  name: string;
54
13
  };
55
14
  rules: {
56
- 'no-hardcoded-jsx-text': Rule;
57
- 'no-legacy-mf-boundary-attributes': Rule;
58
- 'no-literal-visible-jsx-attributes': Rule;
59
- 'no-manual-locale-copy-branching': Rule;
60
- 'no-split-translation-keys': Rule;
61
- 'strict-effect-api-boundaries': Rule;
15
+ 'no-hardcoded-jsx-text': import("./oxlint-plugin.js").Rule;
16
+ 'no-legacy-mf-boundary-attributes': import("./oxlint-plugin.js").Rule;
17
+ 'no-literal-visible-jsx-attributes': import("./oxlint-plugin.js").Rule;
18
+ 'no-manual-locale-copy-branching': import("./oxlint-plugin.js").Rule;
19
+ 'no-split-translation-keys': import("./oxlint-plugin.js").Rule;
20
+ 'strict-effect-api-boundaries': import("./oxlint-plugin.js").Rule;
62
21
  };
63
22
  };
64
23
  export default plugin;
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "engines": {
24
24
  "node": ">=20"
25
25
  },
26
- "version": "3.5.0-ultramodern.9",
26
+ "version": "3.5.0-ultramodern.90",
27
27
  "types": "./dist/types/index.d.ts",
28
28
  "main": "./dist/esm-node/index.js",
29
29
  "typesVersions": {
@@ -58,17 +58,16 @@
58
58
  "dist"
59
59
  ],
60
60
  "dependencies": {
61
- "oxlint": "1.71.0"
61
+ "oxlint": "1.73.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@rslib/core": "0.23.1",
65
- "@types/node": "^26.0.1",
66
- "@typescript/native-preview": "7.0.0-dev.20260628.1",
67
- "@scripts/rstest-config": "2.66.0"
64
+ "@rslib/core": "0.23.2",
65
+ "@scripts/rstest-config": "2.66.0",
66
+ "@types/node": "^26.1.1",
67
+ "@typescript/native-preview": "7.0.0-dev.20260707.2"
68
68
  },
69
69
  "sideEffects": false,
70
70
  "publishConfig": {
71
- "registry": "https://registry.npmjs.org/",
72
71
  "access": "public"
73
72
  },
74
73
  "modern:source": "./src/index.ts",