Skip to content

Commit

Permalink
Add code-linting features to website
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Mar 12, 2024
1 parent 0b48682 commit 421e56d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 40 deletions.
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>
)
41 changes: 1 addition & 40 deletions website/app/[locale]/(root)/docs/code-linting/content.mdx
Original file line number Diff line number Diff line change
@@ -1,43 +1,4 @@
import { IconStatusChange, IconSettingsExclamation, IconArrowMerge, IconShieldCheck, IconPencilExclamation, IconFunction } from '@tabler/icons-react'
import Features, { Feature } from 'websites/components/Features'

<Features className="grid-cols:3@sm my:14x">
<Feature>
<IconStatusChange className="app-icon-primary" />
<div>
**[Consistent class order](#consistent-class-order)**
<p className="text:16">Enforce a consistent and logical order of classes</p>
</div>
</Feature>
<Feature>
<IconShieldCheck className="app-icon-primary" />
<div>
**[Syntax error checks](#syntax-error-checks)**
<p className="text:16">Detect syntax errors early when writing classes</p>
</div>
</Feature>
<Feature>
<IconSettingsExclamation className="app-icon-primary" />
<div>
**[Disallow unknown classes](#disallow-unknown-classes)**
<p className="text:16">Enforce the use of Master CSS syntax to apply styles</p>
</div>
</Feature>
<Feature>
<IconPencilExclamation className="app-icon-primary" />
<div>
**[Class collision detection](#class-collision-detection)**
<p className="text:16">Avoid applying classes with the same CSS declaration</p>
</div>
</Feature>
<Feature>
<IconFunction className="app-icon-primary" />
<div>
**[Supports JS utilities](#supports-js-utilities)**
<p className="text:16">Check the classes in popular utility arguments</p>
</div>
</Feature>
</Features>
<Features />

---

Expand Down

0 comments on commit 421e56d

Please sign in to comment.