Skip to content

Example on using with ESLint #42

Closed Answered by rdgr
rdgr asked this question in Q&A
Discussion options

You must be logged in to vote

Found one solution that works, not using eslint-plugin-tailwindcss but Prettier in the middle, with prettier-plugin-tailwindcss and eslint-config-prettier. After installing it, only needed change is adding this to your .prettierrc (or prettier.config.js):

{
  ...
  "plugins": ["prettier-plugin-tailwindcss"],
  "tailwindFunctions": ["twc"]
}

and update your eslint config file:

{
  "extends": [
    ...otherConfigs,
    "prettier"
  ]
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rdgr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant