@mui/internal-code-infra 0.0.4-canary.28 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-code-infra",
3
- "version": "0.0.4-canary.28",
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",
@@ -168,7 +168,7 @@
168
168
  "publishConfig": {
169
169
  "access": "public"
170
170
  },
171
- "gitSha": "bcba759d16e06c283bcf4dba32ed562f2f9e77cc",
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