Skip to content

Commit

Permalink
feat: add cn as Tailwind callee
Browse files Browse the repository at this point in the history
  • Loading branch information
reiv authored Nov 15, 2024
1 parent 9d57127 commit 14798a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/linting/eslint/tailwind.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion packages/linting/package.json
Original file line number Diff line number Diff line change
@@ -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": {},
Expand Down

0 comments on commit 14798a4

Please sign in to comment.