@mui/internal-code-infra 0.0.4-canary.5 → 0.0.4-canary.50
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/README.md +19 -8
- package/build/babel-config.d.mts +11 -3
- package/build/brokenLinksChecker/crawlWorker.d.mts +1 -0
- package/build/brokenLinksChecker/index.d.mts +45 -2
- package/build/changelog/types.d.ts +1 -1
- package/build/cli/cmdArgosPush.d.mts +2 -2
- package/build/cli/cmdBuild.d.mts +2 -2
- package/build/cli/cmdCopyFiles.d.mts +2 -2
- package/build/cli/cmdExtractErrorCodes.d.mts +2 -2
- package/build/cli/cmdGenerateChangelog.d.mts +2 -2
- package/build/cli/cmdGithubAuth.d.mts +2 -2
- package/build/cli/cmdListWorkspaces.d.mts +4 -2
- package/build/cli/cmdNetlifyIgnore.d.mts +2 -2
- package/build/cli/cmdPublish.d.mts +4 -2
- package/build/cli/cmdPublishCanary.d.mts +3 -3
- package/build/cli/cmdPublishNewPackage.d.mts +4 -2
- package/build/cli/cmdSetVersionOverrides.d.mts +2 -2
- package/build/cli/cmdVale.d.mts +46 -0
- package/build/cli/cmdValidateBuiltTypes.d.mts +2 -2
- package/build/eslint/baseConfig.d.mts +3 -1
- package/build/eslint/mui/rules/disallow-react-api-in-server-components.d.mts +2 -2
- package/build/eslint/mui/rules/docgen-ignore-before-comment.d.mts +2 -2
- package/build/eslint/mui/rules/no-guarded-throw.d.mts +31 -0
- package/build/eslint/mui/rules/no-presentation-role.d.mts +5 -0
- package/build/eslint/mui/rules/no-restricted-resolved-imports.d.mts +2 -2
- package/build/eslint/mui/rules/nodeEnvUtils.d.mts +18 -0
- package/build/markdownlint/duplicate-h1.d.mts +1 -1
- package/build/markdownlint/git-diff.d.mts +1 -1
- package/build/markdownlint/index.d.mts +1 -1
- package/build/markdownlint/straight-quotes.d.mts +1 -1
- package/build/markdownlint/table-alignment.d.mts +1 -1
- package/build/markdownlint/terminal-language.d.mts +1 -1
- package/build/remark/config.d.mts +43 -0
- package/build/remark/createLintTester.d.mts +10 -0
- package/build/remark/firstBlockHeading.d.mts +4 -0
- package/build/remark/gitDiff.d.mts +2 -0
- package/build/remark/noSpaceInLinks.d.mts +2 -0
- package/build/remark/straightQuotes.d.mts +2 -0
- package/build/remark/tableAlignment.d.mts +2 -0
- package/build/remark/terminalLanguage.d.mts +2 -0
- package/build/utils/babel.d.mts +1 -1
- package/build/utils/build.d.mts +4 -4
- package/build/utils/github.d.mts +1 -1
- package/build/utils/pnpm.d.mts +68 -2
- package/build/utils/testUtils.d.mts +7 -0
- package/build/utils/typescript.d.mts +2 -2
- package/package.json +62 -35
- package/src/babel-config.mjs +9 -3
- package/src/brokenLinksChecker/__fixtures__/static-site/index.html +1 -0
- package/src/brokenLinksChecker/__fixtures__/static-site/invalid-html.html +15 -0
- package/src/brokenLinksChecker/crawlWorker.mjs +217 -0
- package/src/brokenLinksChecker/index.mjs +217 -164
- package/src/brokenLinksChecker/index.test.ts +50 -13
- package/src/changelog/categorizeCommits.test.ts +5 -5
- package/src/changelog/fetchChangelogs.mjs +6 -2
- package/src/changelog/parseCommitLabels.test.ts +5 -5
- package/src/changelog/renderChangelog.mjs +1 -1
- package/src/changelog/types.ts +1 -1
- package/src/cli/cmdListWorkspaces.mjs +9 -2
- package/src/cli/cmdNetlifyIgnore.mjs +4 -88
- package/src/cli/cmdPublish.mjs +51 -14
- package/src/cli/cmdPublishCanary.mjs +128 -132
- package/src/cli/cmdPublishNewPackage.mjs +27 -6
- package/src/cli/cmdVale.mjs +513 -0
- package/src/cli/cmdVale.test.mjs +644 -0
- package/src/cli/index.mjs +2 -0
- package/src/cli/packageJson.d.ts +1 -1
- package/src/eslint/baseConfig.mjs +45 -20
- package/src/eslint/docsConfig.mjs +2 -1
- package/src/eslint/jsonConfig.mjs +2 -1
- package/src/eslint/mui/config.mjs +21 -1
- package/src/eslint/mui/index.mjs +4 -0
- package/src/eslint/mui/rules/no-guarded-throw.mjs +115 -0
- package/src/eslint/mui/rules/no-guarded-throw.test.mjs +206 -0
- package/src/eslint/mui/rules/no-presentation-role.mjs +60 -0
- package/src/eslint/mui/rules/no-presentation-role.test.mjs +33 -0
- package/src/eslint/mui/rules/nodeEnvUtils.mjs +52 -0
- package/src/eslint/mui/rules/require-dev-wrapper.mjs +25 -40
- package/src/eslint/testConfig.mjs +2 -1
- package/src/estree-typescript.d.ts +1 -1
- package/src/remark/config.mjs +157 -0
- package/src/remark/createLintTester.mjs +19 -0
- package/src/remark/firstBlockHeading.mjs +87 -0
- package/src/remark/firstBlockHeading.test.mjs +107 -0
- package/src/remark/gitDiff.mjs +43 -0
- package/src/remark/gitDiff.test.mjs +45 -0
- package/src/remark/noSpaceInLinks.mjs +42 -0
- package/src/remark/noSpaceInLinks.test.mjs +22 -0
- package/src/remark/straightQuotes.mjs +31 -0
- package/src/remark/straightQuotes.test.mjs +25 -0
- package/src/remark/tableAlignment.mjs +23 -0
- package/src/remark/tableAlignment.test.mjs +28 -0
- package/src/remark/terminalLanguage.mjs +19 -0
- package/src/remark/terminalLanguage.test.mjs +17 -0
- package/src/untyped-plugins.d.ts +11 -11
- package/src/utils/build.mjs +18 -1
- package/src/utils/build.test.mjs +585 -575
- package/src/utils/pnpm.mjs +192 -3
- package/src/utils/pnpm.test.mjs +580 -0
- package/src/utils/testUtils.mjs +18 -0
- package/src/utils/typescript.test.mjs +249 -272
- package/vale/.vale.ini +1 -0
- package/vale/styles/MUI/CorrectReferenceAllCases.yml +43 -0
- package/vale/styles/MUI/CorrectRererenceCased.yml +14 -0
- package/vale/styles/MUI/GoogleLatin.yml +11 -0
- package/vale/styles/MUI/MuiBrandName.yml +22 -0
- package/vale/styles/MUI/NoBritish.yml +112 -0
- 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'
|