eslint-plugin-trim-x-attribute

0.0.12 • Public • Published

eslint-plugin-trim-x-attribute

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-dev

Next, install eslint-plugin-trim-x-attribute:

npm i eslint-plugin-trim-x-attribute --save-dev

Usage

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"]
			}
		]
	},

Package Sidebar

Install

npm i eslint-plugin-trim-x-attribute

Weekly Downloads

1

Version

0.0.12

License

MIT

Unpacked Size

9.88 kB

Total Files

10

Last publish

Collaborators

  • diegolincoln