1.0.0 • Published 2 years ago
@devtea2025/mollitia-soluta-labore-nihil v1.0.0
@devtea2025/mollitia-soluta-labore-nihil
Simplify and clean up tag attributes in your code effortlessly, making your HTML tags cleaner and more maintainable.
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install @devtea2025/mollitia-soluta-labore-nihil:
npm i @devtea2025/mollitia-soluta-labore-nihil --save-devUsage
Add trim-x-attribute to the plugins section of your .eslintrc configuration file. You can omit
the eslint-plugin- prefix:
{
"plugins": ["trim-x-attribute"]
}Configuration
Config example:
"rules": {
"trim-x-attribute/trim-x-attribute": [
"warn",
{
"tagAttributes": ["ngClass"], // default ["class", "className"]
"fileExtensions": ["html"] // default ["html" ,"jsx" , "tsx"]
}
]
},1.0.0
2 years ago