@mui/internal-code-infra 0.0.4-canary.36 → 0.0.4-canary.37

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-code-infra",
3
- "version": "0.0.4-canary.36",
3
+ "version": "0.0.4-canary.37",
4
4
  "author": "MUI Team",
5
5
  "description": "Infra scripts and configs to be used across MUI repos.",
6
6
  "license": "MIT",
@@ -168,7 +168,7 @@
168
168
  "publishConfig": {
169
169
  "access": "public"
170
170
  },
171
- "gitSha": "1e04001f0f8f7dda807b8ebf1219dd99f0862f5b",
171
+ "gitSha": "4adceb8de477f1548dbab699a336c2c27a4678c9",
172
172
  "scripts": {
173
173
  "build": "tsgo -p tsconfig.build.json",
174
174
  "typescript": "tsgo -noEmit",
@@ -44,6 +44,30 @@ export function createBaseConfig({
44
44
  baseDirectory = process.cwd(),
45
45
  } = {}) {
46
46
  return defineConfig([
47
+ {
48
+ name: 'settings',
49
+ languageOptions: {
50
+ ecmaVersion: 7,
51
+ globals: {
52
+ ...globals.es2020,
53
+ ...globals.browser,
54
+ ...globals.node,
55
+ },
56
+ },
57
+ plugins: {
58
+ mui: muiPlugin,
59
+ },
60
+ settings: {
61
+ react: {
62
+ version: 'detect',
63
+ },
64
+ browserslistOpts: {
65
+ config: path.join(baseDirectory, '.browserslistrc'),
66
+ env: 'stable',
67
+ ignoreUnknownVersions: true,
68
+ },
69
+ },
70
+ },
47
71
  includeIgnoreIfExists(path.join(baseDirectory, '.gitignore'), `Ignore rules from .gitignore`),
48
72
  includeIgnoreIfExists(path.join(baseDirectory, '.lintignore'), `Ignore rules from .lintignore`),
49
73
  createJsonConfig(),
@@ -63,25 +87,7 @@ export function createBaseConfig({
63
87
  enableReactCompiler ? reactCompilerPluginConfigs.recommended : {},
64
88
  compatPlugin.configs['flat/recommended'],
65
89
  {
66
- name: 'typescript-eslint-parser',
67
- languageOptions: {
68
- ecmaVersion: 7,
69
- globals: {
70
- ...globals.es2020,
71
- ...globals.browser,
72
- ...globals.node,
73
- },
74
- },
75
- plugins: {
76
- mui: muiPlugin,
77
- },
78
- settings: {
79
- browserslistOpts: {
80
- config: path.join(baseDirectory, '.browserslistrc'),
81
- env: 'stable',
82
- ignoreUnknownVersions: true,
83
- },
84
- },
90
+ name: 'core',
85
91
  extends: createCoreConfig({ enableReactCompiler, consistentTypeImports, materialUi }),
86
92
  },
87
93
  // Lint rule to disallow usage of typescript namespaces.We've seen at least two problems with them: