@mui/internal-code-infra 0.0.4-canary.54 → 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.
|
|
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",
|
|
@@ -139,9 +139,9 @@
|
|
|
139
139
|
"unified-lint-rule": "^3.0.1",
|
|
140
140
|
"unist-util-visit": "^5.1.0",
|
|
141
141
|
"yargs": "^18.0.0",
|
|
142
|
-
"@mui/internal-babel-plugin-
|
|
142
|
+
"@mui/internal-babel-plugin-display-name": "1.0.4-canary.20",
|
|
143
143
|
"@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.36",
|
|
144
|
-
"@mui/internal-babel-plugin-
|
|
144
|
+
"@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.27"
|
|
145
145
|
},
|
|
146
146
|
"peerDependencies": {
|
|
147
147
|
"@next/eslint-plugin-next": "*",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"publishConfig": {
|
|
192
192
|
"access": "public"
|
|
193
193
|
},
|
|
194
|
-
"gitSha": "
|
|
194
|
+
"gitSha": "536048fcd1ab92fcdab3f1426090c95dd418e88b",
|
|
195
195
|
"scripts": {
|
|
196
196
|
"build": "tsgo -p tsconfig.build.json",
|
|
197
197
|
"typescript": "tsgo -noEmit",
|
|
@@ -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 =
|
|
46
|
+
markdown = true,
|
|
47
47
|
baseDirectory = process.cwd(),
|
|
48
48
|
} = {}) {
|
|
49
49
|
return defineConfig([
|