Add support for parsing class
attributes of Vue Single File Components (*.vue
) by @DanSnow
Make sure to adapt your .eslintrc
file, here is an example:
"overrides": [
...
{
"files": ["*.vue"],
"extends": ["plugin:tailwindcss/recommended"],
"parser": "vue-eslint-parser"
}
]
You. may also need to npm i vue-eslint-parser --save-dev
This only works for plain text at this time, it does not works with conditional class or calls to 3rd party helpers like ctl
, clsx
...