aboutsummaryrefslogtreecommitdiff
path: root/packages/config/eslint/tailwind.js
blob: 9ac36ae18415643b0bda6b802e8fbd49423348be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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']
		}
	}
};