0.0.12 • Published 2 years ago

eslint-plugin-trim-x-attribute v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago