From 421e56d8151d95d96b33bd2830979228774e57ca Mon Sep 17 00:00:00 2001 From: Aron Date: Wed, 13 Mar 2024 00:40:14 +0800 Subject: [PATCH] Add code-linting features to website --- .../docs/code-linting/components/Features.tsx | 43 +++++++++++++++++++ .../(root)/docs/code-linting/content.mdx | 41 +----------------- 2 files changed, 44 insertions(+), 40 deletions(-) create mode 100644 website/app/[locale]/(root)/docs/code-linting/components/Features.tsx diff --git a/website/app/[locale]/(root)/docs/code-linting/components/Features.tsx b/website/app/[locale]/(root)/docs/code-linting/components/Features.tsx new file mode 100644 index 000000000..91bf1bb11 --- /dev/null +++ b/website/app/[locale]/(root)/docs/code-linting/components/Features.tsx @@ -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 () => ( + + + +
+

Consistent class order

+

Enforce a consistent and logical order of classes

+
+
+ + +
+

Syntax error checks

+

Detect syntax errors early when writing classes

+
+
+ + +
+

Disallow unknown classes

+

Enforce the use of Master CSS syntax to apply styles

+
+
+ + +
+

Class collision detection

+

Avoid applying classes with the same CSS declaration

+
+
+ + +
+

Supports JS utilities

+

Check the classes in popular utility arguments

+
+
+
+) \ No newline at end of file diff --git a/website/app/[locale]/(root)/docs/code-linting/content.mdx b/website/app/[locale]/(root)/docs/code-linting/content.mdx index 7853407c7..730826c9c 100644 --- a/website/app/[locale]/(root)/docs/code-linting/content.mdx +++ b/website/app/[locale]/(root)/docs/code-linting/content.mdx @@ -1,43 +1,4 @@ -import { IconStatusChange, IconSettingsExclamation, IconArrowMerge, IconShieldCheck, IconPencilExclamation, IconFunction } from '@tabler/icons-react' -import Features, { Feature } from 'websites/components/Features' - - - - -
- **[Consistent class order](#consistent-class-order)** -

Enforce a consistent and logical order of classes

-
-
- - -
- **[Syntax error checks](#syntax-error-checks)** -

Detect syntax errors early when writing classes

-
-
- - -
- **[Disallow unknown classes](#disallow-unknown-classes)** -

Enforce the use of Master CSS syntax to apply styles

-
-
- - -
- **[Class collision detection](#class-collision-detection)** -

Avoid applying classes with the same CSS declaration

-
-
- - -
- **[Supports JS utilities](#supports-js-utilities)** -

Check the classes in popular utility arguments

-
-
-
+ ---