-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add code-linting features to website
- Loading branch information
Showing
2 changed files
with
44 additions
and
40 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
website/app/[locale]/(root)/docs/code-linting/components/Features.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import Features, { Feature } from 'websites/components/Features' | ||
import { IconStatusChange, IconSettingsExclamation, IconArrowMerge, IconShieldCheck, IconPencilExclamation, IconFunction } from '@tabler/icons-react' | ||
import Link from 'websites/components/Link' | ||
|
||
export default () => ( | ||
<Features className="grid-cols:3@sm my:14x"> | ||
<Feature> | ||
<IconStatusChange className="app-icon-primary" /> | ||
<div> | ||
<p><Link href="#consistent-class-order">Consistent class order</Link></p> | ||
<p className="text:16!">Enforce a consistent and logical order of classes</p> | ||
</div> | ||
</Feature> | ||
<Feature> | ||
<IconShieldCheck className="app-icon-primary" /> | ||
<div> | ||
<p><Link href="#syntax-error-checks">Syntax error checks</Link></p> | ||
<p className="text:16!">Detect syntax errors early when writing classes</p> | ||
</div> | ||
</Feature> | ||
<Feature> | ||
<IconSettingsExclamation className="app-icon-primary" /> | ||
<div> | ||
<p><Link href="#disallow-unknown-classes">Disallow unknown classes</Link></p> | ||
<p className="text:16!">Enforce the use of Master CSS syntax to apply styles</p> | ||
</div> | ||
</Feature> | ||
<Feature> | ||
<IconPencilExclamation className="app-icon-primary" /> | ||
<div> | ||
<p><Link href="#class-collision-detection">Class collision detection</Link></p> | ||
<p className="text:16!">Avoid applying classes with the same CSS declaration</p> | ||
</div> | ||
</Feature> | ||
<Feature> | ||
<IconFunction className="app-icon-primary" /> | ||
<div> | ||
<p><Link href="#supports-js-utilities">Supports JS utilities</Link></p> | ||
<p className="text:16!">Check the classes in popular utility arguments</p> | ||
</div> | ||
</Feature> | ||
</Features> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters