Skip to content

dilincoln/eslint-plugin-x-trim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published