From 14798a472c1607e61a53344e211f15a8e2b16e1d Mon Sep 17 00:00:00 2001 From: reiv Date: Fri, 15 Nov 2024 15:08:10 +0100 Subject: [PATCH] feat: add `cn` as Tailwind callee --- packages/linting/eslint/tailwind.js | 4 ++-- packages/linting/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/linting/eslint/tailwind.js b/packages/linting/eslint/tailwind.js index bdd068f..cb0c2ef 100644 --- a/packages/linting/eslint/tailwind.js +++ b/packages/linting/eslint/tailwind.js @@ -3,7 +3,7 @@ const tailwindPlugin = require('eslint-plugin-tailwindcss'); const {recommended} = tailwindPlugin.configs; /** - * @type {import('eslint').Linter.FlatConfig} + * @type {import('eslint').Linter.Config} */ module.exports = { files: ['**/*.tsx', '**/*.jsx'], @@ -15,7 +15,7 @@ module.exports = { // https://github.com/francoismassart/eslint-plugin-tailwindcss#more-settings settings: { tailwindcss: { - callees: ['classNames', 'clsx', 'ctl', 'twMerge'], + callees: ['classNames', 'clsx', 'cn', 'ctl', 'twMerge'], } }, languageOptions: { diff --git a/packages/linting/package.json b/packages/linting/package.json index 3ce44ab..711902f 100644 --- a/packages/linting/package.json +++ b/packages/linting/package.json @@ -1,6 +1,6 @@ { "name": "@atmina/linting", - "version": "3.0.0", + "version": "3.0.1", "description": "A collection of opinionated in-house linting rules.", "main": "index.js", "scripts": {},