Skip to content

Commit f0be1e7

Browse files
committed
feat: ๐Ÿ”จ ๊ฐœ์„ ๋œ TailwindCSS ๊ทœ์น™ ์‹ ๊ทœ ์ถ”๊ฐ€
1 parent 1035a84 commit f0be1e7

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* ESLint better-tailwindcss ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์ • ๋ชจ๋“ˆ
3+
*
4+
* @author RWB
5+
* @since 2025.06.24 Tue 15:12:29
6+
*/
7+
8+
import pluginBetterTailwindcss from 'eslint-plugin-better-tailwindcss';
9+
10+
import type { Linter } from 'eslint';
11+
12+
export default {
13+
files: [ '**/*.[jt]sx' ],
14+
plugins: { '@better-tailwindcss': pluginBetterTailwindcss },
15+
rules: {
16+
// ํด๋ž˜์Šค ์ •๋ ฌ ๊ฐ•์ œ
17+
'@better-tailwindcss/enforce-consistent-class-order': 'error',
18+
// ์ผ๊ด€๋œ ํด๋ž˜์Šค ์ค„๋ฐ”๊ฟˆ ๊ฐ•์ œ
19+
'@better-tailwindcss/enforce-consistent-line-wrapping': 'error',
20+
// ์ผ๊ด€๋œ CSS ๋ณ€์ˆ˜ ํ˜ธ์ถœ ๊ฐ•์ œ
21+
'@better-tailwindcss/enforce-consistent-variable-syntax': 'error',
22+
// ํด๋ž˜์Šค ์Šคํƒ€์ผ ์ถฉ๋Œ ๋ฐฉ์ง€
23+
'@better-tailwindcss/no-conflicting-classes': 'error',
24+
// ํด๋ž˜์Šค ์ค‘๋ณต ๋ฐฉ์ง€
25+
'@better-tailwindcss/no-duplicate-classes': 'error',
26+
// ๋ถˆํ•„์š” ๊ณต๋ฐฑ ์ œ๊ฑฐ
27+
'@better-tailwindcss/no-unnecessary-whitespace': 'error'
28+
}
29+
} satisfies Linter.Config;

0 commit comments

Comments
ย (0)