init project
Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled

This commit is contained in:
how2ice
2025-12-12 14:26:25 +09:00
commit 005cf56baf
43188 changed files with 1079531 additions and 0 deletions

2
docs/mui-vale/.vale.ini Normal file
View File

@@ -0,0 +1,2 @@
# This is subfolder included in our .zip archive.
StylesPath = styles

View File

@@ -0,0 +1,42 @@
# Enforce a single way to write specific terms or phrases.
extends: substitution
message: Use '%s' instead of '%s'
level: error
ignorecase: true # There is only one correct way to spell those, so we want to match inputs regardless of case.
# swap maps tokens in form of bad: good
# for more information: https://vale.sh/docs/topics/styles/#substitution
swap:
' api': ' API'
'typescript ': 'TypeScript '
' ts': ' TypeScript'
javascript: JavaScript
' js': ' JavaScript'
' css ': ' CSS '
' html ': ' HTML '
NPM: npm # https://css-tricks.com/start-sentence-npm/
Github: GitHub
StackOverflow: Stack Overflow
Stack Overflow: Stack Overflow
CSS modules: CSS Modules
Tailwind CSS: Tailwind CSS
Heat map: Heatmap
Tree map: Treemap
Sparkline Chart: Sparkline chart
Gauge Chart: Gauge chart
Treemap Chart: Treemap chart
sub-component: subcomponent
sub-components: subcomponents
use-case: use case
usecase: use case
Material 3: Material Design 3
VSCode: VS Code
VS Code: VS Code
'Codesandbox ': 'CodeSandbox '
code sandbox: CodeSandbox
Stackblitz: StackBlitz
Webpack: webpack # https://twitter.com/wSokra/status/855800490713649152
app router: App Router # Next.js
pages router: Pages Router # Next.js
page router: Pages Router # Next.js
eslint: ESLint
ES modules: ES modules

View File

@@ -0,0 +1,14 @@
# Write things correctly, please no wrong references.
extends: substitution
message: Use '%s' instead of '%s'
level: error
ignorecase: false
# swap maps tokens in form of bad: good
# for more information: https://vale.sh/docs/topics/styles/#substitution
swap:
eg: e.g.
eg\.: e.g.
e\.g: e.g.
ie: i.e.
ie\.: i.e.
i\.e: i.e.

View File

@@ -0,0 +1,11 @@
extends: substitution
message: Use '%s' instead of '%s'
link: https://developers.google.com/style/abbreviations
ignorecase: false
level: error
nonword: true
action:
name: replace
swap:
'\b(?:eg|e\.g\.)(?=[\s,;])': for example
'\b(?:ie|i\.e\.)(?=[\s,;])': that is

View File

@@ -0,0 +1,22 @@
# Without a non-breaking space, brand names can be split in the middle
# with the start and end on two different lines.
# For example, Apple does this meticulously with their brand name: https://www.apple.com/macbook-air/.
# Also read https://www.chrisdpeters.com/blog/using-non-breaking-spaces-to-help-with-branding/ for why.
extends: substitution
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')
level: error
ignorecase: true
# swap maps tokens in form of bad: good
# for more information: https://vale.sh/docs/topics/styles/#substitution
swap:
Material UI: Material UI
MUI X: MUI X
Base UI: Base UI
MUI Base: MUI Base
MUI System: MUI System
MUI Store: MUI Store
MUI Core: MUI Core
MUI Toolpad: Toolpad
MUI Toolpad: Toolpad
MUI Connect: MUI Connect
Pigment CSS: Pigment CSS

View File

@@ -0,0 +1,112 @@
extends: substitution
message: Use the US spelling '%s' instead of the British '%s'
link: https://www.notion.so/mui-org/Writing-style-guide-2a957a4168a54d47b14bae026d06a24b?pvs=4#25755bff02764565b954631236ab183d
level: error
ignorecase: true
swap:
aeon: eon
aeroplane: airplane
ageing: aging
aluminium: aluminum
anaemia: anemia
anaesthesia: anesthesia
analyse: analyze
annexe: annex
apologise: apologize
authorisation: authorization
authorise: authorize
authorised: authorized
authorising: authorizing
behaviour: behavior
bellow: below
busses: buses
calibre: caliber
categorise: categorize
categorised: categorized
categorises: categorizes
categorising: categorizing
centre: center
cheque: check
civilisation: civilization
civilise: civilize
colour: color
cosy: cozy
cypher: cipher
defence: defense
dependant: dependent
distil: distill
draught: draft
encyclopaedia: encyclopedia
enquiry: inquiry
enrol: enroll
enrolment: enrollment
enthral: enthrall
favourite: favorite
fibre: fiber
fillet: filet
flavour: flavor
fulfil: fulfill
furore: furor
gaol: jail
grey: gray
honour: honor
humour: humor
initialled: initialed
initialling: initialing
instil: instill
jewellery: jewelry
labelled: labeled
labelling: labeling
labour: labor
libellous: libelous
licence: license
likeable: likable
liveable: livable
lustre: luster
manoeuvre: maneuver
marvellous: marvelous
meagre: meager
metre: meter
modelling: modeling
moustache: mustache
neighbour: neighbor
normalise: normalize
offence: offense
optimise: optimize
optimised: optimized
optimising: optimizing
organise: organize
orientated: oriented
paralyse: paralyze
plough: plow
pretence: pretense
programme: program
pyjamas: pajamas
rateable: ratable
realise: realize
recognise: recognize
reconnoitre: reconnoiter
rumour: rumor
sabre: saber
saleable: salable
saltpetre: saltpeter
sceptic: skeptic
sepulchre: sepulcher
signalling: signaling
sizeable: sizable
skilful: skillful
smoulder: smolder
sombre: somber
speciality: specialty
spectre: specter
splendour: splendor
standardise: standardize
standardised: standardized
sulphur: sulfur
theatre: theater
travelled: traveled
traveller: traveler
travelling: traveling
unshakeable: unshakable
wilful: willful
yoghurt: yogurt

View File

@@ -0,0 +1,17 @@
extends: existence
message: We avoid referencing the company name '%s'. Instead you can reference a product or the team.
level: warning
ignorecase: false
tokens:
- 'MUI \w+'
exceptions:
- 'MUI X'
- 'MUI System'
- 'MUI Store'
- 'MUI Core'
- 'MUI Connect'
# valid use of a regular space
- 'MUI organization'
- 'MUI ecosystem'
- 'MUI products'
- 'MUI team'