@mui/internal-code-infra 0.0.3-canary.35 → 0.0.3-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.3-canary.35",
3
+ "version": "0.0.3-canary.37",
4
4
  "description": "Infra scripts and configs to be used across MUI repos.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -55,12 +55,12 @@
55
55
  "@babel/preset-react": "^7.27.1",
56
56
  "@babel/preset-typescript": "^7.27.1",
57
57
  "@eslint/compat": "^1.4.0",
58
- "@eslint/js": "^9.36.0",
58
+ "@eslint/js": "^9.38.0",
59
59
  "@eslint/json": "^0.13.2",
60
60
  "@inquirer/confirm": "^5.1.19",
61
- "@inquirer/select": "^4.3.4",
61
+ "@inquirer/select": "^4.4.0",
62
62
  "@napi-rs/keyring": "^1.2.0",
63
- "@next/eslint-plugin-next": "^15.5.4",
63
+ "@next/eslint-plugin-next": "^15.5.6",
64
64
  "@octokit/auth-action": "^6.0.1",
65
65
  "@octokit/oauth-methods": "^6.0.1",
66
66
  "@octokit/rest": "^22.0.0",
@@ -70,18 +70,19 @@
70
70
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
71
71
  "babel-plugin-transform-remove-imports": "^1.8.1",
72
72
  "chalk": "^5.6.2",
73
- "clipboardy": "^4.0.0",
73
+ "clipboardy": "^5.0.0",
74
74
  "env-ci": "^11.2.0",
75
75
  "eslint-config-prettier": "^10.1.8",
76
76
  "eslint-import-resolver-typescript": "^4.4.4",
77
77
  "eslint-module-utils": "^2.12.1",
78
+ "eslint-plugin-compat": "^6.0.2",
78
79
  "eslint-plugin-import": "^2.32.0",
79
80
  "eslint-plugin-jsx-a11y": "^6.10.2",
80
81
  "eslint-plugin-mocha": "^11.2.0",
81
82
  "eslint-plugin-react": "^7.37.5",
82
83
  "eslint-plugin-react-compiler": "^19.1.0-rc.2",
83
- "eslint-plugin-react-hooks": "^6.1.0",
84
- "eslint-plugin-testing-library": "^7.11.0",
84
+ "eslint-plugin-react-hooks": "^6.1.1",
85
+ "eslint-plugin-testing-library": "^7.13.3",
85
86
  "execa": "^9.6.0",
86
87
  "git-url-parse": "^16.1.0",
87
88
  "globals": "^16.4.0",
@@ -93,11 +94,11 @@
93
94
  "resolve-pkg-maps": "^1.0.0",
94
95
  "semver": "^7.7.3",
95
96
  "stylelint-config-standard": "^39.0.1",
96
- "typescript-eslint": "^8.45.0",
97
+ "typescript-eslint": "^8.46.2",
97
98
  "yargs": "^18.0.0",
98
- "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.10",
99
- "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.25",
100
- "@mui/internal-babel-plugin-display-name": "1.0.4-canary.7"
99
+ "@mui/internal-babel-plugin-display-name": "1.0.4-canary.7",
100
+ "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.26",
101
+ "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.10"
101
102
  },
102
103
  "peerDependencies": {
103
104
  "eslint": "^9.0.0",
@@ -108,17 +109,17 @@
108
109
  "@types/babel__core": "^7.20.5",
109
110
  "@types/babel__preset-env": "^7.10.0",
110
111
  "@types/env-ci": "^3.1.4",
111
- "@types/eslint-plugin-jsx-a11y": "^6.10.0",
112
+ "@types/eslint-plugin-jsx-a11y": "^6.10.1",
112
113
  "@types/estree": "^1.0.8",
113
114
  "@types/estree-jsx": "^1.0.5",
114
115
  "@types/regexp.escape": "^2.0.0",
115
116
  "@types/yargs": "^17.0.33",
116
- "@typescript-eslint/parser": "^8.45.0",
117
- "@typescript-eslint/rule-tester": "^8.45.0",
118
- "eslint": "^9.36.0",
119
- "@octokit/types": "^15.0.0",
117
+ "@typescript-eslint/parser": "^8.46.2",
118
+ "@typescript-eslint/rule-tester": "^8.46.2",
119
+ "eslint": "^9.38.0",
120
+ "@octokit/types": "^15.0.1",
120
121
  "prettier": "^3.6.2",
121
- "typescript-eslint": "^8.45.0"
122
+ "typescript-eslint": "^8.46.2"
122
123
  },
123
124
  "files": [
124
125
  "bin",
@@ -130,7 +131,7 @@
130
131
  "publishConfig": {
131
132
  "access": "public"
132
133
  },
133
- "gitSha": "473c6b6d689479d713c11822c29755e4716ca8c6",
134
+ "gitSha": "b851b8913d924e0a6f4fe7360579661738532655",
134
135
  "scripts": {
135
136
  "build": "tsc -p tsconfig.build.json",
136
137
  "typescript": "tsc -p tsconfig.json",
@@ -2,6 +2,7 @@ import { includeIgnoreFile } from '@eslint/compat';
2
2
  import eslintJs from '@eslint/js';
3
3
  import { defineConfig } from 'eslint/config';
4
4
  import prettier from 'eslint-config-prettier/flat';
5
+ import compatPlugin from 'eslint-plugin-compat';
5
6
  import importPlugin from 'eslint-plugin-import';
6
7
  import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
7
8
  import reactPlugin from 'eslint-plugin-react';
@@ -56,6 +57,7 @@ export function createBaseConfig({
56
57
  tseslint.configs.recommended,
57
58
  importPlugin.flatConfigs.typescript,
58
59
  enableReactCompiler ? reactCompilerPluginConfigs.recommended : {},
60
+ compatPlugin.configs['flat/recommended'],
59
61
  {
60
62
  name: 'typescript-eslint-parser',
61
63
  languageOptions: {
@@ -69,6 +71,13 @@ export function createBaseConfig({
69
71
  plugins: {
70
72
  'material-ui': muiPlugin,
71
73
  },
74
+ settings: {
75
+ browserslistOpts: {
76
+ config: path.join(baseDirectory, '.browserslistrc'),
77
+ env: 'stable',
78
+ ignoreUnknownVersions: true,
79
+ },
80
+ },
72
81
  extends: createCoreConfig({ enableReactCompiler }),
73
82
  },
74
83
  // Lint rule to disallow usage of typescript namespaces.We've seen at least two problems with them:
@@ -12,6 +12,7 @@ export function createDocsConfig() {
12
12
  },
13
13
  },
14
14
  rules: {
15
+ 'compat/compat': 'off',
15
16
  'jsx-a11y/anchor-is-valid': 'off',
16
17
  'no-irregular-whitespace': ['error', { skipJSXText: true, skipStrings: true }],
17
18
  },
@@ -12,6 +12,7 @@ export const baseSpecRules = {
12
12
  name: 'Spec files rules',
13
13
  files: [`**/*.spec${EXTENSION_TS}`],
14
14
  rules: {
15
+ 'compat/compat': 'off',
15
16
  'no-alert': 'off',
16
17
  'no-console': 'off',
17
18
  'no-empty-pattern': 'off',
@@ -62,6 +63,7 @@ export function createTestConfig(options = {}) {
62
63
  globals: globals.mocha,
63
64
  },
64
65
  rules: {
66
+ 'compat/compat': 'off',
65
67
  // does not work with wildcard imports. Mistakes will throw at runtime anyway
66
68
  'import/named': 'off',
67
69
  'material-ui/disallow-active-element-as-key-event-target': 'error',