@mui/internal-code-infra 0.0.4-canary.72 → 0.0.4-canary.74

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.
Files changed (53) hide show
  1. package/build/utils/git.d.mts +7 -0
  2. package/package.json +5 -3
  3. package/src/cli/cmdPublish.mjs +40 -5
  4. package/src/utils/git.mjs +11 -0
  5. package/src/brokenLinksChecker/__fixtures__/static-site/broken-links.html +0 -20
  6. package/src/brokenLinksChecker/__fixtures__/static-site/broken-targets.html +0 -22
  7. package/src/brokenLinksChecker/__fixtures__/static-site/example.md +0 -20
  8. package/src/brokenLinksChecker/__fixtures__/static-site/external-links.html +0 -21
  9. package/src/brokenLinksChecker/__fixtures__/static-site/ignored-page.html +0 -17
  10. package/src/brokenLinksChecker/__fixtures__/static-site/index.html +0 -29
  11. package/src/brokenLinksChecker/__fixtures__/static-site/invalid-html.html +0 -15
  12. package/src/brokenLinksChecker/__fixtures__/static-site/known-targets.json +0 -5
  13. package/src/brokenLinksChecker/__fixtures__/static-site/nested/page.html +0 -21
  14. package/src/brokenLinksChecker/__fixtures__/static-site/orphaned-page.html +0 -20
  15. package/src/brokenLinksChecker/__fixtures__/static-site/page-with-api-links.html +0 -20
  16. package/src/brokenLinksChecker/__fixtures__/static-site/page-with-custom-targets.html +0 -24
  17. package/src/brokenLinksChecker/__fixtures__/static-site/page-with-ignored-content.html +0 -28
  18. package/src/brokenLinksChecker/__fixtures__/static-site/page-with-known-target-links.html +0 -19
  19. package/src/brokenLinksChecker/__fixtures__/static-site/unclosed-tags.html +0 -1
  20. package/src/brokenLinksChecker/__fixtures__/static-site/valid.html +0 -20
  21. package/src/brokenLinksChecker/__fixtures__/static-site/with-anchors.html +0 -31
  22. package/src/brokenLinksChecker/index.test.ts +0 -301
  23. package/src/changelog/categorizeCommits.test.ts +0 -319
  24. package/src/changelog/filterCommits.test.ts +0 -363
  25. package/src/changelog/parseCommitLabels.test.ts +0 -509
  26. package/src/changelog/renderChangelog.test.ts +0 -378
  27. package/src/changelog/sortSections.test.ts +0 -199
  28. package/src/cli/cmdVale.test.mjs +0 -644
  29. package/src/eslint/mui/rules/add-undef-to-optional.test.mjs +0 -361
  30. package/src/eslint/mui/rules/consistent-production-guard.test.mjs +0 -162
  31. package/src/eslint/mui/rules/disallow-active-elements-as-key-event-target.test.mjs +0 -66
  32. package/src/eslint/mui/rules/disallow-react-api-in-server-components.test.mjs +0 -305
  33. package/src/eslint/mui/rules/docgen-ignore-before-comment.test.mjs +0 -52
  34. package/src/eslint/mui/rules/flatten-parentheses.test.mjs +0 -245
  35. package/src/eslint/mui/rules/mui-name-matches-component-name.test.mjs +0 -247
  36. package/src/eslint/mui/rules/no-empty-box.test.mjs +0 -40
  37. package/src/eslint/mui/rules/no-floating-cleanup.test.mjs +0 -141
  38. package/src/eslint/mui/rules/no-guarded-throw.test.mjs +0 -206
  39. package/src/eslint/mui/rules/no-presentation-role.test.mjs +0 -33
  40. package/src/eslint/mui/rules/no-styled-box.test.mjs +0 -73
  41. package/src/eslint/mui/rules/require-dev-wrapper.test.mjs +0 -265
  42. package/src/eslint/mui/rules/rules-of-use-theme-variants.test.mjs +0 -149
  43. package/src/eslint/mui/rules/straight-quotes.test.mjs +0 -67
  44. package/src/remark/firstBlockHeading.test.mjs +0 -107
  45. package/src/remark/gitDiff.test.mjs +0 -45
  46. package/src/remark/noSpaceInLinks.test.mjs +0 -22
  47. package/src/remark/straightQuotes.test.mjs +0 -25
  48. package/src/remark/tableAlignment.test.mjs +0 -28
  49. package/src/remark/terminalLanguage.test.mjs +0 -17
  50. package/src/utils/build.test.mjs +0 -1263
  51. package/src/utils/pnpm.test.mjs +0 -731
  52. package/src/utils/template.test.mjs +0 -133
  53. package/src/utils/typescript.test.mjs +0 -341
@@ -1,22 +0,0 @@
1
- import { describe, it, expect } from 'vitest';
2
- import { createLintTester } from './createLintTester.mjs';
3
- import plugin from './noSpaceInLinks.mjs';
4
-
5
- const lint = createLintTester(plugin);
6
-
7
- describe('remark-lint-mui-no-space-in-links', () => {
8
- it('accepts links without surrounding whitespace', () => {
9
- expect(lint(`[link text](https://example.com)\n`)).toEqual([]);
10
- expect(lint(`Some [inline](https://example.com) text.\n`)).toEqual([]);
11
- });
12
-
13
- it('flags leading whitespace in link text', () => {
14
- const messages = lint(`[ link text ](https://example.com)\n`);
15
- expect(messages).toHaveLength(1);
16
- });
17
-
18
- it('flags trailing whitespace in link text', () => {
19
- const messages = lint(`[trailing ](https://example.com)\n`);
20
- expect(messages).toHaveLength(1);
21
- });
22
- });
@@ -1,25 +0,0 @@
1
- import { describe, it, expect } from 'vitest';
2
- import { createLintTester } from './createLintTester.mjs';
3
- import plugin from './straightQuotes.mjs';
4
-
5
- const lint = createLintTester(plugin);
6
-
7
- describe('remark-lint-mui-straight-quotes', () => {
8
- it('accepts straight quotes', () => {
9
- expect(lint(`# Title\n\nA paragraph with "straight" and 'simple' quotes.\n`)).toEqual([]);
10
- });
11
-
12
- it('flags curly double quotes with correct location', () => {
13
- const messages = lint(`# Title\n\nA paragraph with “curly” quotes.\n`);
14
- expect(messages).toHaveLength(2);
15
- expect(messages[0]).toMatchObject({ line: 3, column: 18 });
16
- expect(messages[1]).toMatchObject({ line: 3, column: 24 });
17
- });
18
-
19
- it('flags curly single quotes', () => {
20
- const messages = lint(`Use ‘single’ curly quotes too.\n`);
21
- expect(messages).toHaveLength(2);
22
- expect(messages[0]).toMatchObject({ line: 1, column: 5 });
23
- expect(messages[1]).toMatchObject({ line: 1, column: 12 });
24
- });
25
- });
@@ -1,28 +0,0 @@
1
- import { describe, it, expect } from 'vitest';
2
- import { createLintTester } from './createLintTester.mjs';
3
- import plugin from './tableAlignment.mjs';
4
-
5
- const lint = createLintTester(plugin);
6
-
7
- describe('remark-lint-mui-table-alignment', () => {
8
- it('accepts tables with explicit alignment on every column', () => {
9
- const input = `| A | B |\n| :- | -: |\n| 1 | 2 |\n`;
10
- expect(lint(input)).toEqual([]);
11
- });
12
-
13
- it('flags tables with at least one column missing alignment', () => {
14
- const input = `| A | B |\n| :- | -- |\n| 1 | 2 |\n`;
15
- const messages = lint(input);
16
- expect(messages).toHaveLength(1);
17
- });
18
-
19
- it('flags tables with no alignment at all', () => {
20
- const input = `| A | B |\n| - | - |\n| 1 | 2 |\n`;
21
- const messages = lint(input);
22
- expect(messages).toHaveLength(1);
23
- });
24
-
25
- it('does not flag non-table content', () => {
26
- expect(lint(`# Heading\n\nSome paragraph.\n`)).toEqual([]);
27
- });
28
- });
@@ -1,17 +0,0 @@
1
- import { describe, it, expect } from 'vitest';
2
- import { createLintTester } from './createLintTester.mjs';
3
- import plugin from './terminalLanguage.mjs';
4
-
5
- const lint = createLintTester(plugin);
6
-
7
- describe('remark-lint-mui-terminal-language', () => {
8
- it('accepts bash and other languages', () => {
9
- expect(lint(`\`\`\`bash\necho hi\n\`\`\`\n`)).toEqual([]);
10
- expect(lint(`\`\`\`js\nconst x = 1;\n\`\`\`\n`)).toEqual([]);
11
- });
12
-
13
- it('flags `sh` code fences', () => {
14
- const messages = lint(`\`\`\`sh\necho hi\n\`\`\`\n`);
15
- expect(messages).toHaveLength(1);
16
- });
17
- });