@mui/internal-code-infra 0.0.4-canary.3 → 0.0.4-canary.31

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 (69) hide show
  1. package/README.md +19 -8
  2. package/build/babel-config.d.mts +11 -3
  3. package/build/brokenLinksChecker/crawlWorker.d.mts +1 -0
  4. package/build/brokenLinksChecker/index.d.mts +35 -2
  5. package/build/changelog/types.d.ts +1 -1
  6. package/build/cli/cmdArgosPush.d.mts +2 -2
  7. package/build/cli/cmdBuild.d.mts +2 -2
  8. package/build/cli/cmdCopyFiles.d.mts +2 -2
  9. package/build/cli/cmdExtractErrorCodes.d.mts +2 -2
  10. package/build/cli/cmdGenerateChangelog.d.mts +2 -2
  11. package/build/cli/cmdGithubAuth.d.mts +2 -2
  12. package/build/cli/cmdListWorkspaces.d.mts +4 -2
  13. package/build/cli/cmdNetlifyIgnore.d.mts +2 -2
  14. package/build/cli/cmdPublish.d.mts +4 -2
  15. package/build/cli/cmdPublishCanary.d.mts +3 -2
  16. package/build/cli/cmdPublishNewPackage.d.mts +4 -2
  17. package/build/cli/cmdSetVersionOverrides.d.mts +2 -2
  18. package/build/cli/cmdVale.d.mts +46 -0
  19. package/build/cli/cmdValidateBuiltTypes.d.mts +2 -2
  20. package/build/eslint/mui/rules/disallow-react-api-in-server-components.d.mts +2 -2
  21. package/build/eslint/mui/rules/docgen-ignore-before-comment.d.mts +2 -2
  22. package/build/eslint/mui/rules/no-restricted-resolved-imports.d.mts +2 -2
  23. package/build/markdownlint/duplicate-h1.d.mts +1 -1
  24. package/build/markdownlint/git-diff.d.mts +1 -1
  25. package/build/markdownlint/index.d.mts +1 -1
  26. package/build/markdownlint/straight-quotes.d.mts +1 -1
  27. package/build/markdownlint/table-alignment.d.mts +1 -1
  28. package/build/markdownlint/terminal-language.d.mts +1 -1
  29. package/build/utils/build.d.mts +3 -3
  30. package/build/utils/github.d.mts +1 -1
  31. package/build/utils/pnpm.d.mts +68 -2
  32. package/build/utils/testUtils.d.mts +7 -0
  33. package/package.json +38 -31
  34. package/src/babel-config.mjs +9 -3
  35. package/src/brokenLinksChecker/__fixtures__/static-site/index.html +1 -0
  36. package/src/brokenLinksChecker/__fixtures__/static-site/invalid-html.html +15 -0
  37. package/src/brokenLinksChecker/crawlWorker.mjs +173 -0
  38. package/src/brokenLinksChecker/index.mjs +177 -164
  39. package/src/brokenLinksChecker/index.test.ts +55 -13
  40. package/src/build-env.d.ts +13 -0
  41. package/src/changelog/fetchChangelogs.mjs +6 -2
  42. package/src/changelog/types.ts +1 -1
  43. package/src/cli/cmdListWorkspaces.mjs +9 -2
  44. package/src/cli/cmdNetlifyIgnore.mjs +4 -88
  45. package/src/cli/cmdPublish.mjs +51 -14
  46. package/src/cli/cmdPublishCanary.mjs +139 -107
  47. package/src/cli/cmdPublishNewPackage.mjs +27 -6
  48. package/src/cli/cmdVale.mjs +513 -0
  49. package/src/cli/cmdVale.test.mjs +644 -0
  50. package/src/cli/index.mjs +2 -0
  51. package/src/eslint/baseConfig.mjs +2 -1
  52. package/src/eslint/docsConfig.mjs +2 -1
  53. package/src/eslint/jsonConfig.mjs +2 -1
  54. package/src/eslint/mui/config.mjs +11 -1
  55. package/src/eslint/testConfig.mjs +2 -1
  56. package/src/estree-typescript.d.ts +1 -1
  57. package/src/untyped-plugins.d.ts +11 -11
  58. package/src/utils/build.test.mjs +546 -575
  59. package/src/utils/pnpm.mjs +192 -3
  60. package/src/utils/pnpm.test.mjs +580 -0
  61. package/src/utils/testUtils.mjs +18 -0
  62. package/src/utils/typescript.test.mjs +249 -272
  63. package/vale/.vale.ini +1 -0
  64. package/vale/styles/MUI/CorrectReferenceAllCases.yml +43 -0
  65. package/vale/styles/MUI/CorrectRererenceCased.yml +14 -0
  66. package/vale/styles/MUI/GoogleLatin.yml +11 -0
  67. package/vale/styles/MUI/MuiBrandName.yml +22 -0
  68. package/vale/styles/MUI/NoBritish.yml +112 -0
  69. package/vale/styles/MUI/NoCompanyName.yml +17 -0
@@ -0,0 +1,11 @@
1
+ extends: substitution
2
+ message: Use '%s' instead of '%s'
3
+ link: https://developers.google.com/style/abbreviations
4
+ ignorecase: false
5
+ level: error
6
+ nonword: true
7
+ action:
8
+ name: replace
9
+ swap:
10
+ '\b(?:eg|e\.g\.)(?=[\s,;])': for example
11
+ '\b(?:ie|i\.e\.)(?=[\s,;])': that is
@@ -0,0 +1,22 @@
1
+ # Without a non-breaking space, brand names can be split in the middle
2
+ # with the start and end on two different lines.
3
+ # For example, Apple does this meticulously with their brand name: https://www.apple.com/macbook-air/.
4
+ # Also read https://www.chrisdpeters.com/blog/using-non-breaking-spaces-to-help-with-branding/ for why.
5
+ extends: substitution
6
+ message: Use a non-breaking space (option+space on Mac, Alt+0160 on Windows or AltGr+Space on Linux, instead of space) for brand name ('%s' instead of '%s')
7
+ level: error
8
+ ignorecase: true
9
+ # swap maps tokens in form of bad: good
10
+ # for more information: https://vale.sh/docs/topics/styles/#substitution
11
+ swap:
12
+ Material UI: Material UI
13
+ MUI X: MUI X
14
+ Base UI: Base UI
15
+ MUI Base: MUI Base
16
+ MUI System: MUI System
17
+ MUI Store: MUI Store
18
+ MUI Core: MUI Core
19
+ MUI Toolpad: Toolpad
20
+ MUI Toolpad: Toolpad
21
+ MUI Connect: MUI Connect
22
+ Pigment CSS: Pigment CSS
@@ -0,0 +1,112 @@
1
+ extends: substitution
2
+ message: Use the US spelling '%s' instead of the British '%s'
3
+ link: https://www.notion.so/mui-org/Writing-style-guide-2a957a4168a54d47b14bae026d06a24b?pvs=4#25755bff02764565b954631236ab183d
4
+ level: error
5
+ ignorecase: true
6
+ swap:
7
+ aeon: eon
8
+ aeroplane: airplane
9
+ ageing: aging
10
+ aluminium: aluminum
11
+ anaemia: anemia
12
+ anaesthesia: anesthesia
13
+ analyse: analyze
14
+ annexe: annex
15
+ apologise: apologize
16
+ authorisation: authorization
17
+ authorise: authorize
18
+ authorised: authorized
19
+ authorising: authorizing
20
+ behaviour: behavior
21
+ bellow: below
22
+ busses: buses
23
+ calibre: caliber
24
+ categorise: categorize
25
+ categorised: categorized
26
+ categorises: categorizes
27
+ categorising: categorizing
28
+ centre: center
29
+ cheque: check
30
+ civilisation: civilization
31
+ civilise: civilize
32
+ colour: color
33
+ cosy: cozy
34
+ cypher: cipher
35
+ defence: defense
36
+ dependant: dependent
37
+ distil: distill
38
+ draught: draft
39
+ encyclopaedia: encyclopedia
40
+ enquiry: inquiry
41
+ enrol: enroll
42
+ enrolment: enrollment
43
+ enthral: enthrall
44
+ favourite: favorite
45
+ fibre: fiber
46
+ fillet: filet
47
+ flavour: flavor
48
+ fulfil: fulfill
49
+ furore: furor
50
+ gaol: jail
51
+ grey: gray
52
+ honour: honor
53
+ humour: humor
54
+ initialled: initialed
55
+ initialling: initialing
56
+ instil: instill
57
+ jewellery: jewelry
58
+ labelled: labeled
59
+ labelling: labeling
60
+ labour: labor
61
+ libellous: libelous
62
+ licence: license
63
+ likeable: likable
64
+ liveable: livable
65
+ lustre: luster
66
+ manoeuvre: maneuver
67
+ marvellous: marvelous
68
+ meagre: meager
69
+ metre: meter
70
+ modelling: modeling
71
+ moustache: mustache
72
+ neighbour: neighbor
73
+ normalise: normalize
74
+ offence: offense
75
+ optimise: optimize
76
+ optimised: optimized
77
+ optimising: optimizing
78
+ organise: organize
79
+ orientated: oriented
80
+ paralyse: paralyze
81
+ plough: plow
82
+ pretence: pretense
83
+ programme: program
84
+ pyjamas: pajamas
85
+ rateable: ratable
86
+ realise: realize
87
+ recognise: recognize
88
+ reconnoitre: reconnoiter
89
+ rumour: rumor
90
+ sabre: saber
91
+ saleable: salable
92
+ saltpetre: saltpeter
93
+ sceptic: skeptic
94
+ sepulchre: sepulcher
95
+ signalling: signaling
96
+ sizeable: sizable
97
+ skilful: skillful
98
+ smoulder: smolder
99
+ sombre: somber
100
+ speciality: specialty
101
+ spectre: specter
102
+ splendour: splendor
103
+ standardise: standardize
104
+ standardised: standardized
105
+ sulphur: sulfur
106
+ theatre: theater
107
+ travelled: traveled
108
+ traveller: traveler
109
+ travelling: traveling
110
+ unshakeable: unshakable
111
+ wilful: willful
112
+ yoghurt: yogurt
@@ -0,0 +1,17 @@
1
+ extends: existence
2
+ message: We avoid referencing the company name '%s'. Instead you can reference a product or the team.
3
+ level: warning
4
+ ignorecase: false
5
+ tokens:
6
+ - 'MUI \w+'
7
+ exceptions:
8
+ - 'MUI X'
9
+ - 'MUI System'
10
+ - 'MUI Store'
11
+ - 'MUI Core'
12
+ - 'MUI Connect'
13
+ # valid use of a regular space
14
+ - 'MUI organization'
15
+ - 'MUI ecosystem'
16
+ - 'MUI products'
17
+ - 'MUI team'