@mui/internal-code-infra 0.0.4-canary.27 → 0.0.4-canary.29

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.
@@ -8,5 +8,5 @@ export type Args = {
8
8
  * @property {boolean} [verbose] - Run with verbose logging
9
9
  * @property {string} folder - Screenshots folder path
10
10
  */
11
- declare const _default: import("yargs").CommandModule<{}, Args>;
12
- export default /** @type {import('yargs').CommandModule<{}, Args>} */ _default;
11
+ declare const _default: import('yargs').CommandModule<{}, Args>;
12
+ export default _default;
@@ -14,5 +14,5 @@ export type Args = {
14
14
  tsgo?: boolean;
15
15
  flat?: boolean;
16
16
  };
17
- declare const _default: import("yargs").CommandModule<{}, Args>;
18
- export default /** @type {import('yargs').CommandModule<{}, Args>} */ _default;
17
+ declare const _default: import('yargs').CommandModule<{}, Args>;
18
+ export default _default;
@@ -4,5 +4,5 @@ export type Args = {
4
4
  glob?: string[];
5
5
  files?: string[];
6
6
  };
7
- declare const _default: import("yargs").CommandModule<{}, Args>;
8
- export default /** @type {import('yargs').CommandModule<{}, Args>} */ _default;
7
+ declare const _default: import('yargs').CommandModule<{}, Args>;
8
+ export default _default;
@@ -2,5 +2,5 @@ export type Args = import('../utils/extractErrorCodes.mjs').Args;
2
2
  /**
3
3
  * @typedef {import('../utils/extractErrorCodes.mjs').Args} Args
4
4
  */
5
- declare const _default: import("yargs").CommandModule<{}, import("../utils/extractErrorCodes.mjs").Args>;
6
- export default /** @type {import('yargs').CommandModule<{}, Args>} */ _default;
5
+ declare const _default: import('yargs').CommandModule<{}, Args>;
6
+ export default _default;
@@ -13,5 +13,5 @@ export type Args = {
13
13
  * @property {string} releaseVersion The version number for the new release
14
14
  * @property {string} cwd The current working directory to run the command in
15
15
  */
16
- declare const _default: import("yargs").CommandModule<{}, Args>;
17
- export default /** @type {import('yargs').CommandModule<{}, Args>} */ _default;
16
+ declare const _default: import('yargs').CommandModule<{}, Args>;
17
+ export default _default;
@@ -7,5 +7,5 @@ export type Args = {
7
7
  * @property {boolean} authorize
8
8
  * @property {boolean} clear
9
9
  */
10
- declare const _default: import("yargs").CommandModule<{}, Args>;
11
- export default /** @type {import('yargs').CommandModule<{}, Args>} */ _default;
10
+ declare const _default: import('yargs').CommandModule<{}, Args>;
11
+ export default _default;
@@ -13,5 +13,5 @@ export type Args = {
13
13
  * @property {string} [sinceRef] - Git reference to filter changes since
14
14
  * @property {string[]} [filter] - Same as filtering packages with --filter in pnpm. Only include packages matching the filter. See https://pnpm.io/filtering.
15
15
  */
16
- declare const _default: import("yargs").CommandModule<{}, Args>;
17
- export default /** @type {import('yargs').CommandModule<{}, Args>} */ _default;
16
+ declare const _default: import('yargs').CommandModule<{}, Args>;
17
+ export default _default;
@@ -3,5 +3,5 @@ export type Args = {
3
3
  workspaces: string[];
4
4
  check?: boolean;
5
5
  };
6
- declare const _default: import("yargs").CommandModule<{}, Args>;
7
- export default /** @type {import('yargs').CommandModule<{}, Args>} */ _default;
6
+ declare const _default: import('yargs').CommandModule<{}, Args>;
7
+ export default _default;
@@ -10,5 +10,5 @@ export type Args = {
10
10
  sha?: string;
11
11
  filter?: string[];
12
12
  };
13
- declare const _default: import("yargs").CommandModule<{}, Args>;
14
- export default /** @type {import('yargs').CommandModule<{}, Args>} */ _default;
13
+ declare const _default: import('yargs').CommandModule<{}, Args>;
14
+ export default _default;
@@ -12,5 +12,5 @@ export type Commit = {
12
12
  message: string;
13
13
  author: string;
14
14
  };
15
- declare const _default: import("yargs").CommandModule<{}, Args>;
16
- export default /** @type {import('yargs').CommandModule<{}, Args>} */ _default;
15
+ declare const _default: import('yargs').CommandModule<{}, Args>;
16
+ export default _default;
@@ -7,5 +7,5 @@ export type Args = {
7
7
  * @property {boolean} [dryRun] If true, will only log the commands without executing them
8
8
  * @property {string} [otp] 6 digit auth code to forward to npm for two-factor authentication
9
9
  */
10
- declare const _default: import("yargs").CommandModule<{}, Args>;
11
- export default /** @type {import('yargs').CommandModule<{}, Args>} */ _default;
10
+ declare const _default: import('yargs').CommandModule<{}, Args>;
11
+ export default _default;
@@ -2,5 +2,5 @@
2
2
  export type Args = {
3
3
  pkg?: string[];
4
4
  };
5
- declare const _default: import("yargs").CommandModule<{}, Args>;
6
- export default /** @type {import('yargs').CommandModule<{}, Args>} */ _default;
5
+ declare const _default: import('yargs').CommandModule<{}, Args>;
6
+ export default _default;
@@ -42,5 +42,5 @@ export type Args = {
42
42
  /**
43
43
  * @typedef {{ 'vale-version': string; 'auto-fix': 'all' | 'error' | undefined; }} Args
44
44
  */
45
- declare const _default: import("yargs").CommandModule<{}, Args>;
46
- export default /** @type {import('yargs').CommandModule<{}, Args>} */ _default;
45
+ declare const _default: import('yargs').CommandModule<{}, Args>;
46
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("yargs").CommandModule<{}, {}>;
2
- export default /** @type {import('yargs').CommandModule<{}, {}>} */ _default;
1
+ declare const _default: import('yargs').CommandModule<{}, {}>;
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("eslint").Rule.RuleModule;
2
- export default /** @type {import('eslint').Rule.RuleModule} */ _default;
1
+ declare const _default: import('eslint').Rule.RuleModule;
2
+ export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("eslint").Rule.RuleModule;
2
- export default /** @type {import('eslint').Rule.RuleModule} */ _default;
1
+ declare const _default: import('eslint').Rule.RuleModule;
2
+ export default _default;
@@ -11,5 +11,5 @@ export type PatternConfig = {
11
11
  * Creates an ESLint rule that restricts imports based on their resolved paths.
12
12
  * Works with both ESM (import) and CommonJS (require) imports.
13
13
  */
14
- declare const _default: import("eslint").Rule.RuleModule;
15
- export default /** @type {import('eslint').Rule.RuleModule} */ _default;
14
+ declare const _default: import('eslint').Rule.RuleModule;
15
+ export default _default;
@@ -51,6 +51,6 @@ declare const _default: {
51
51
  * @param {import('./duplicate-h1.mjs').MdParams} params
52
52
  * @param {import('./duplicate-h1.mjs').OnError} onError
53
53
  */
54
- function: (params: MdParams, onError: OnError) => void;
54
+ function: (params: import('./duplicate-h1.mjs').MdParams, onError: import('./duplicate-h1.mjs').OnError) => void;
55
55
  };
56
56
  export default _default;
@@ -6,6 +6,6 @@ declare const _default: {
6
6
  * @param {import('./duplicate-h1.mjs').MdParams} params
7
7
  * @param {import('./duplicate-h1.mjs').OnError} onError
8
8
  */
9
- function: (params: import("./duplicate-h1.mjs").MdParams, onError: import("./duplicate-h1.mjs").OnError) => void;
9
+ function: (params: import('./duplicate-h1.mjs').MdParams, onError: import('./duplicate-h1.mjs').OnError) => void;
10
10
  };
11
11
  export default _default;
@@ -46,7 +46,7 @@ export declare function createBaseConfig(options?: {
46
46
  names: string[];
47
47
  description: string;
48
48
  tags: string[];
49
- function: (params: import("./duplicate-h1.mjs").MdParams, onError: import("./duplicate-h1.mjs").OnError) => void;
49
+ function: (params: import('./duplicate-h1.mjs').MdParams, onError: import('./duplicate-h1.mjs').OnError) => void;
50
50
  }[];
51
51
  ignores: string[];
52
52
  };
@@ -6,6 +6,6 @@ declare const _default: {
6
6
  * @param {import('./duplicate-h1.mjs').MdParams} params
7
7
  * @param {import('./duplicate-h1.mjs').OnError} onError
8
8
  */
9
- function: (params: import("./duplicate-h1.mjs").MdParams, onError: import("./duplicate-h1.mjs").OnError) => void;
9
+ function: (params: import('./duplicate-h1.mjs').MdParams, onError: import('./duplicate-h1.mjs').OnError) => void;
10
10
  };
11
11
  export default _default;
@@ -6,6 +6,6 @@ declare const _default: {
6
6
  * @param {import('./duplicate-h1.mjs').MdParams} params
7
7
  * @param {import('./duplicate-h1.mjs').OnError} onError
8
8
  */
9
- function: (params: import("./duplicate-h1.mjs").MdParams, onError: import("./duplicate-h1.mjs").OnError) => void;
9
+ function: (params: import('./duplicate-h1.mjs').MdParams, onError: import('./duplicate-h1.mjs').OnError) => void;
10
10
  };
11
11
  export default _default;
@@ -6,6 +6,6 @@ declare const _default: {
6
6
  * @param {import('./duplicate-h1.mjs').MdParams} params
7
7
  * @param {import('./duplicate-h1.mjs').OnError} onError
8
8
  */
9
- function: (params: import("./duplicate-h1.mjs").MdParams, onError: import("./duplicate-h1.mjs").OnError) => void;
9
+ function: (params: import('./duplicate-h1.mjs').MdParams, onError: import('./duplicate-h1.mjs').OnError) => void;
10
10
  };
11
11
  export default _default;
@@ -37,9 +37,9 @@ export declare function createPackageExports({ exports: packageExports, bundles,
37
37
  isFlat?: boolean;
38
38
  packageType?: 'module' | 'commonjs';
39
39
  }): Promise<{
40
- main?: string | undefined;
41
- types?: string | undefined;
42
- exports: import("../cli/packageJson").PackageJson.ExportConditions;
40
+ main?: string;
41
+ types?: string;
42
+ exports: import('../cli/packageJson').PackageJson.ExportConditions;
43
43
  }>;
44
44
  /**
45
45
  * @param {Object} param0
@@ -20,7 +20,7 @@ export type GitHubAppAuthenticationWithRefreshToken = {
20
20
  * @property {string} [refreshTokenExpiresAt] - ISO string when the refresh token expires
21
21
  */
22
22
  export declare function persistentAuthStrategy(): {
23
- hook: (request: import("@octokit/types").RequestInterface<object>, route: string, parameters: import("@octokit/types").RequestParameters) => Promise<import("@octokit/types").OctokitResponse<any, number>>;
23
+ hook: (request: import('@octokit/types').RequestInterface, route: import('@octokit/types').Route, parameters: import('@octokit/types').RequestParameters) => Promise<import("@octokit/types").OctokitResponse<any, number>>;
24
24
  };
25
25
  /**
26
26
  * @param {Object} [options]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-code-infra",
3
- "version": "0.0.4-canary.27",
3
+ "version": "0.0.4-canary.29",
4
4
  "author": "MUI Team",
5
5
  "description": "Infra scripts and configs to be used across MUI repos.",
6
6
  "license": "MIT",
@@ -53,7 +53,7 @@
53
53
  "code-infra": "./bin/code-infra.mjs"
54
54
  },
55
55
  "dependencies": {
56
- "@argos-ci/core": "^5.1.2",
56
+ "@argos-ci/core": "^5.2.0",
57
57
  "@babel/cli": "^7.28.6",
58
58
  "@babel/core": "^7.29.0",
59
59
  "@babel/plugin-syntax-jsx": "^7.28.6",
@@ -66,8 +66,8 @@
66
66
  "@eslint/config-helpers": "^0.5.4",
67
67
  "@eslint/js": "^10.0.1",
68
68
  "@eslint/json": "^1.1.0",
69
- "@inquirer/confirm": "^6.0.10",
70
- "@inquirer/select": "^5.1.2",
69
+ "@inquirer/confirm": "^6.0.11",
70
+ "@inquirer/select": "^5.1.3",
71
71
  "@napi-rs/keyring": "^1.2.0",
72
72
  "@octokit/auth-action": "^6.0.2",
73
73
  "@octokit/oauth-methods": "^6.0.2",
@@ -100,10 +100,10 @@
100
100
  "eslint-plugin-testing-library": "^7.16.0",
101
101
  "execa": "^9.6.1",
102
102
  "git-url-parse": "^16.1.0",
103
- "globals": "^17.4.0",
103
+ "globals": "^17.5.0",
104
104
  "globby": "^16.1.1",
105
105
  "html-validate": "^10.13.0",
106
- "minimatch": "^10.2.4",
106
+ "minimatch": "^10.2.5",
107
107
  "node-html-parser": "^7.1.0",
108
108
  "open": "^11.0.0",
109
109
  "postcss-styled-syntax": "^0.7.1",
@@ -119,9 +119,9 @@
119
119
  "typescript-eslint": "^8.57.1",
120
120
  "unified": "^11.0.5",
121
121
  "yargs": "^18.0.0",
122
- "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.25",
123
- "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.34",
124
- "@mui/internal-babel-plugin-display-name": "1.0.4-canary.17"
122
+ "@mui/internal-babel-plugin-display-name": "1.0.4-canary.18",
123
+ "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.26",
124
+ "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.35"
125
125
  },
126
126
  "peerDependencies": {
127
127
  "@next/eslint-plugin-next": "*",
@@ -153,7 +153,7 @@
153
153
  "@typescript-eslint/rule-tester": "8.57.1",
154
154
  "eslint": "10.0.3",
155
155
  "get-port": "7.2.0",
156
- "prettier": "3.8.1",
156
+ "prettier": "3.8.3",
157
157
  "serve": "14.2.6",
158
158
  "typescript-eslint": "8.57.1"
159
159
  },
@@ -168,7 +168,7 @@
168
168
  "publishConfig": {
169
169
  "access": "public"
170
170
  },
171
- "gitSha": "ce27060278b3eb7eadf5f7901cc0db888b6688f1",
171
+ "gitSha": "ffaa5fd8a4baba5abc4dea3bd3ff2b82e45db1c1",
172
172
  "scripts": {
173
173
  "build": "tsgo -p tsconfig.build.json",
174
174
  "typescript": "tsgo -noEmit",
@@ -500,6 +500,15 @@ export function createCoreConfig(options = {}) {
500
500
  message: 'Do not call `Error(...)` without `new`. Use `new Error(...)` instead.',
501
501
  selector: "CallExpression[callee.name='Error']",
502
502
  },
503
+ {
504
+ // xmlns="http://www.w3.org/2000/svg" is only needed on standalone .svg files so the
505
+ // browser treats them as SVG instead of generic XML. Inside HTML the <svg> element is
506
+ // already recognised by the browser, so the attribute is dead weight.
507
+ // https://github.com/mui/mui-public/pull/1321
508
+ message:
509
+ 'Remove xmlns from inline <svg>. The attribute is redundant in HTML and adds unnecessary bytes.',
510
+ selector: 'JSXOpeningElement[name.name="svg"] > JSXAttribute[name.name="xmlns"]',
511
+ },
503
512
  ...restrictedSyntaxRules,
504
513
  ],
505
514