@mui/internal-code-infra 0.0.4-canary.73 → 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 (51) hide show
  1. package/package.json +5 -3
  2. package/src/cli/cmdPublish.mjs +32 -3
  3. package/src/brokenLinksChecker/__fixtures__/static-site/broken-links.html +0 -20
  4. package/src/brokenLinksChecker/__fixtures__/static-site/broken-targets.html +0 -22
  5. package/src/brokenLinksChecker/__fixtures__/static-site/example.md +0 -20
  6. package/src/brokenLinksChecker/__fixtures__/static-site/external-links.html +0 -21
  7. package/src/brokenLinksChecker/__fixtures__/static-site/ignored-page.html +0 -17
  8. package/src/brokenLinksChecker/__fixtures__/static-site/index.html +0 -29
  9. package/src/brokenLinksChecker/__fixtures__/static-site/invalid-html.html +0 -15
  10. package/src/brokenLinksChecker/__fixtures__/static-site/known-targets.json +0 -5
  11. package/src/brokenLinksChecker/__fixtures__/static-site/nested/page.html +0 -21
  12. package/src/brokenLinksChecker/__fixtures__/static-site/orphaned-page.html +0 -20
  13. package/src/brokenLinksChecker/__fixtures__/static-site/page-with-api-links.html +0 -20
  14. package/src/brokenLinksChecker/__fixtures__/static-site/page-with-custom-targets.html +0 -24
  15. package/src/brokenLinksChecker/__fixtures__/static-site/page-with-ignored-content.html +0 -28
  16. package/src/brokenLinksChecker/__fixtures__/static-site/page-with-known-target-links.html +0 -19
  17. package/src/brokenLinksChecker/__fixtures__/static-site/unclosed-tags.html +0 -1
  18. package/src/brokenLinksChecker/__fixtures__/static-site/valid.html +0 -20
  19. package/src/brokenLinksChecker/__fixtures__/static-site/with-anchors.html +0 -31
  20. package/src/brokenLinksChecker/index.test.ts +0 -301
  21. package/src/changelog/categorizeCommits.test.ts +0 -319
  22. package/src/changelog/filterCommits.test.ts +0 -363
  23. package/src/changelog/parseCommitLabels.test.ts +0 -509
  24. package/src/changelog/renderChangelog.test.ts +0 -378
  25. package/src/changelog/sortSections.test.ts +0 -199
  26. package/src/cli/cmdVale.test.mjs +0 -644
  27. package/src/eslint/mui/rules/add-undef-to-optional.test.mjs +0 -361
  28. package/src/eslint/mui/rules/consistent-production-guard.test.mjs +0 -162
  29. package/src/eslint/mui/rules/disallow-active-elements-as-key-event-target.test.mjs +0 -66
  30. package/src/eslint/mui/rules/disallow-react-api-in-server-components.test.mjs +0 -305
  31. package/src/eslint/mui/rules/docgen-ignore-before-comment.test.mjs +0 -52
  32. package/src/eslint/mui/rules/flatten-parentheses.test.mjs +0 -245
  33. package/src/eslint/mui/rules/mui-name-matches-component-name.test.mjs +0 -247
  34. package/src/eslint/mui/rules/no-empty-box.test.mjs +0 -40
  35. package/src/eslint/mui/rules/no-floating-cleanup.test.mjs +0 -141
  36. package/src/eslint/mui/rules/no-guarded-throw.test.mjs +0 -206
  37. package/src/eslint/mui/rules/no-presentation-role.test.mjs +0 -33
  38. package/src/eslint/mui/rules/no-styled-box.test.mjs +0 -73
  39. package/src/eslint/mui/rules/require-dev-wrapper.test.mjs +0 -265
  40. package/src/eslint/mui/rules/rules-of-use-theme-variants.test.mjs +0 -149
  41. package/src/eslint/mui/rules/straight-quotes.test.mjs +0 -67
  42. package/src/remark/firstBlockHeading.test.mjs +0 -107
  43. package/src/remark/gitDiff.test.mjs +0 -45
  44. package/src/remark/noSpaceInLinks.test.mjs +0 -22
  45. package/src/remark/straightQuotes.test.mjs +0 -25
  46. package/src/remark/tableAlignment.test.mjs +0 -28
  47. package/src/remark/terminalLanguage.test.mjs +0 -17
  48. package/src/utils/build.test.mjs +0 -1263
  49. package/src/utils/pnpm.test.mjs +0 -731
  50. package/src/utils/template.test.mjs +0 -133
  51. 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
- });