You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Deno lint plugin that prevents inline styles in JSX/TSX components. This helps maintain a consistent styling approach by encouraging the use of CSS classes instead of inline styles.
4
6
5
7
## Installation
6
8
9
+
Add the plugin to your `deno.json`:
10
+
7
11
```json
8
12
{
9
13
"lint": {
@@ -17,6 +21,8 @@ A Deno lint plugin that prevents inline styles in JSX/TSX components. This helps
17
21
18
22
## Usage
19
23
24
+
Once configured, the plugin will flag any inline styles:
25
+
20
26
```tsx
21
27
// ❌ Error
22
28
<divstyle={{ color: 'red' }}>Content</div>
@@ -27,7 +33,9 @@ A Deno lint plugin that prevents inline styles in JSX/TSX components. This helps
27
33
28
34
## Ignoring Specific Cases
29
35
36
+
If you have legitimate use cases for inline styles, you can ignore specific lines:
0 commit comments