aboutsummaryrefslogtreecommitdiff
path: root/packages/config/eslint/tailwind.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/config/eslint/tailwind.js')
-rw-r--r--packages/config/eslint/tailwind.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/config/eslint/tailwind.js b/packages/config/eslint/tailwind.js
new file mode 100644
index 0000000..9ac36ae
--- /dev/null
+++ b/packages/config/eslint/tailwind.js
@@ -0,0 +1,23 @@
+const path = require('node:path');
+
+/** @type {import('eslint').ESLint.ConfigData} */
+module.exports = {
+ extends: ['plugin:tailwindcss/recommended'],
+ rules: {
+ 'tailwindcss/no-custom-classname': 'off',
+ 'tailwindcss/classnames-order': [
+ 'warn',
+ {
+ config: path.resolve(
+ path.join(__dirname, '../../..', 'packages/ui/tailwind.config.js')
+ )
+ }
+ ]
+ },
+ settings: {
+ tailwindcss: {
+ callees: ['classnames', 'clsx', 'ctl', 'cva', 'tw', 'twStyle'],
+ tags: ['tw', 'twStyle']
+ }
+ }
+};