@mui/internal-code-infra 0.0.4-canary.53 → 0.0.4-canary.55

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.
@@ -3,14 +3,14 @@
3
3
  * @param {boolean} [params.enableReactCompiler] - Whether to enable React Compiler.
4
4
  * @param {boolean} [params.consistentTypeImports] - Whether to enforce consistent type imports.
5
5
  * @param {boolean} [params.materialUi] - Whether to enable Material UI specific rules (mui/material-ui-*).
6
- * @param {boolean} [params.markdown] - Whether to enable markdown/MDX linting via `eslint-plugin-mdx`. Opt-in so dependents can adopt on their own schedule.
7
6
  * @param {string} [params.baseDirectory] - The base directory for the configuration.
7
+ * @param {boolean} [params.markdown] - @deprecated Markdown/MDX linting is enabled by default; this option no longer needs to be passed. To skip markdown linting, use eslint ignore patterns for the relevant files.
8
8
  * @returns {import('eslint').Linter.Config[]}
9
9
  */
10
10
  export declare function createBaseConfig({ enableReactCompiler, consistentTypeImports, materialUi, markdown, baseDirectory, }?: {
11
11
  enableReactCompiler?: boolean;
12
12
  consistentTypeImports?: boolean;
13
13
  materialUi?: boolean;
14
- markdown?: boolean;
15
14
  baseDirectory?: string;
15
+ markdown?: boolean;
16
16
  }): import('eslint').Linter.Config[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-code-infra",
3
- "version": "0.0.4-canary.53",
3
+ "version": "0.0.4-canary.55",
4
4
  "author": "MUI Team",
5
5
  "description": "Infra scripts and configs to be used across MUI repos.",
6
6
  "license": "MIT",
@@ -191,7 +191,7 @@
191
191
  "publishConfig": {
192
192
  "access": "public"
193
193
  },
194
- "gitSha": "b4ed2d73599b0cef4b7e90c88e1e4d8163c670e8",
194
+ "gitSha": "536048fcd1ab92fcdab3f1426090c95dd418e88b",
195
195
  "scripts": {
196
196
  "build": "tsgo -p tsconfig.build.json",
197
197
  "typescript": "tsgo -noEmit",
@@ -46,7 +46,10 @@ function getOctokit() {
46
46
  * @returns {Promise<string | null>} Version string
47
47
  */
48
48
  async function getReleaseVersion() {
49
- const result = await $`pnpm pkg get version`;
49
+ // `--json` is required: pnpm 11 returns the raw value (e.g. `9.4.0`) for a
50
+ // single field without it, which is not valid JSON. The flag forces quoted
51
+ // output (`"9.4.0"`) across pnpm 9/10/11.
52
+ const result = await $`pnpm pkg get version --json`;
50
53
  const version = JSON.parse(result.stdout.trim());
51
54
  return semver.valid(version);
52
55
  }
@@ -35,15 +35,15 @@ function includeIgnoreIfExists(filePath, description) {
35
35
  * @param {boolean} [params.enableReactCompiler] - Whether to enable React Compiler.
36
36
  * @param {boolean} [params.consistentTypeImports] - Whether to enforce consistent type imports.
37
37
  * @param {boolean} [params.materialUi] - Whether to enable Material UI specific rules (mui/material-ui-*).
38
- * @param {boolean} [params.markdown] - Whether to enable markdown/MDX linting via `eslint-plugin-mdx`. Opt-in so dependents can adopt on their own schedule.
39
38
  * @param {string} [params.baseDirectory] - The base directory for the configuration.
39
+ * @param {boolean} [params.markdown] - @deprecated Markdown/MDX linting is enabled by default; this option no longer needs to be passed. To skip markdown linting, use eslint ignore patterns for the relevant files.
40
40
  * @returns {import('eslint').Linter.Config[]}
41
41
  */
42
42
  export function createBaseConfig({
43
43
  enableReactCompiler = false,
44
44
  consistentTypeImports = false,
45
45
  materialUi = false,
46
- markdown = false,
46
+ markdown = true,
47
47
  baseDirectory = process.cwd(),
48
48
  } = {}) {
49
49
  return defineConfig([