@mui/internal-code-infra 0.0.4-canary.25 → 0.0.4-canary.27
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/build/cli/cmdVale.d.mts +46 -0
- package/package.json +6 -5
- package/src/cli/cmdVale.mjs +513 -0
- package/src/cli/cmdVale.test.mjs +644 -0
- package/src/cli/index.mjs +2 -0
- 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,43 @@
|
|
|
1
|
+
# Enforce a single way to write specific terms or phrases.
|
|
2
|
+
extends: substitution
|
|
3
|
+
message: Use '%s' instead of '%s'
|
|
4
|
+
level: error
|
|
5
|
+
ignorecase: true # There is only one correct way to spell those, so we want to match inputs regardless of case.
|
|
6
|
+
# swap maps tokens in form of bad: good
|
|
7
|
+
# for more information: https://vale.sh/docs/topics/styles/#substitution
|
|
8
|
+
swap:
|
|
9
|
+
' api': ' API'
|
|
10
|
+
'typescript ': 'TypeScript '
|
|
11
|
+
' ts': ' TypeScript'
|
|
12
|
+
javascript: JavaScript
|
|
13
|
+
' js': ' JavaScript'
|
|
14
|
+
' css ': ' CSS '
|
|
15
|
+
' html ': ' HTML '
|
|
16
|
+
NPM: npm # https://css-tricks.com/start-sentence-npm/
|
|
17
|
+
Github: GitHub
|
|
18
|
+
StackOverflow: Stack Overflow
|
|
19
|
+
Stack Overflow: Stack Overflow
|
|
20
|
+
CSS modules: CSS Modules
|
|
21
|
+
Tailwind CSS: Tailwind CSS
|
|
22
|
+
Heat map: Heatmap
|
|
23
|
+
Tree map: Treemap
|
|
24
|
+
Sparkline Chart: Sparkline chart
|
|
25
|
+
Gauge Chart: Gauge chart
|
|
26
|
+
Treemap Chart: Treemap chart
|
|
27
|
+
sub-component: subcomponent
|
|
28
|
+
sub-components: subcomponents
|
|
29
|
+
use-case: use case
|
|
30
|
+
usecase: use case
|
|
31
|
+
Material 3: Material Design 3
|
|
32
|
+
VSCode: VS Code
|
|
33
|
+
VS Code: VS Code
|
|
34
|
+
'Codesandbox ': 'CodeSandbox '
|
|
35
|
+
code sandbox: CodeSandbox
|
|
36
|
+
Stackblitz: StackBlitz
|
|
37
|
+
Webpack: webpack # https://twitter.com/wSokra/status/855800490713649152
|
|
38
|
+
app router: App Router # Next.js
|
|
39
|
+
pages router: Pages Router # Next.js
|
|
40
|
+
page router: Pages Router # Next.js
|
|
41
|
+
eslint: ESLint
|
|
42
|
+
ES modules: ES modules
|
|
43
|
+
JSDOM: jsdom
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Write things correctly, please no wrong references.
|
|
2
|
+
extends: substitution
|
|
3
|
+
message: Use '%s' instead of '%s'
|
|
4
|
+
level: error
|
|
5
|
+
ignorecase: false
|
|
6
|
+
# swap maps tokens in form of bad: good
|
|
7
|
+
# for more information: https://vale.sh/docs/topics/styles/#substitution
|
|
8
|
+
swap:
|
|
9
|
+
eg: e.g.
|
|
10
|
+
eg\.: e.g.
|
|
11
|
+
e\.g: e.g.
|
|
12
|
+
ie: i.e.
|
|
13
|
+
ie\.: i.e.
|
|
14
|
+
i\.e: i.e.
|
|
@@ -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'
|