File tree 3 files changed +43
-1
lines changed
3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export async function tailwindcss(
23
23
'tailwindcss/no-arbitrary-value' : 'off' ,
24
24
'tailwindcss/no-contradicting-classname' : 'error' ,
25
25
'tailwindcss/no-custom-classname' : 'off' ,
26
+ 'tailwindcss/no-unnecessary-arbitrary-value' : 'warn' ,
26
27
27
28
...overrides ,
28
29
} ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import type { MigrationFromTailwind_2Rule } from './migration-from-tailwind-2'
5
5
import type { NoArbitraryValueRule } from './no-arbitrary-value'
6
6
import type { NoContradictingClassnameRule } from './no-contradicting-classname'
7
7
import type { NoCustomClassnameRule } from './no-custom-classname'
8
+ import type { NoUnnecessaryArbitraryValueRule } from './no-unnecessary-arbitrary-value'
8
9
9
10
/**
10
11
* All TailwindCss rules.
@@ -15,4 +16,5 @@ export type TailwindCssRules = ClassnamesOrderRule &
15
16
MigrationFromTailwind_2Rule &
16
17
NoArbitraryValueRule &
17
18
NoContradictingClassnameRule &
18
- NoCustomClassnameRule
19
+ NoCustomClassnameRule &
20
+ NoUnnecessaryArbitraryValueRule
Original file line number Diff line number Diff line change
1
+ import type { RuleConfig } from '../rule-config'
2
+
3
+ /**
4
+ * Option.
5
+ */
6
+ export interface NoUnnecessaryArbitraryValueOption {
7
+ callees ?: string [ ]
8
+ ignoredKeys ?: string [ ]
9
+ config ?: string | Record < string , any >
10
+ tags ?: string [ ]
11
+
12
+ [ k : string ] : any
13
+ }
14
+
15
+ /**
16
+ * Options.
17
+ */
18
+ export type NoUnnecessaryArbitraryValueOptions = [
19
+ NoUnnecessaryArbitraryValueOption ?,
20
+ ]
21
+
22
+ /**
23
+ * Avoid unjustified arbitrary classnames.
24
+ * @see [no-unnecessary-arbitrary-value](https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/no-unnecessary-arbitrary-value.md)
25
+ */
26
+ export type NoUnnecessaryArbitraryValueRuleConfig =
27
+ RuleConfig < NoUnnecessaryArbitraryValueOptions >
28
+
29
+ /**
30
+ * Avoid unjustified arbitrary classnames.
31
+ * @see [no-unnecessary-arbitrary-value](https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/no-unnecessary-arbitrary-value.md)
32
+ */
33
+ export interface NoUnnecessaryArbitraryValueRule {
34
+ /**
35
+ * Avoid unjustified arbitrary classnames.
36
+ * @see [no-unnecessary-arbitrary-value](https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/no-unnecessary-arbitrary-value.md)
37
+ */
38
+ 'tailwindcss/no-unnecessary-arbitrary-value' : NoUnnecessaryArbitraryValueRuleConfig
39
+ }
You can’t perform that action at this time.
0 commit comments