Wojciech Duda 0a1fd8dd2e
AAE-20779 add custom eslint rule for material selectors (#9427)
* AAE-20779 create custom eslint rule

* AAE-20779 add dynamic error messages depending on the filetype

* AAE-20779 update regex for classes

* AAE-20779 remove console log, fix default message

* AAE-20779 lint fix

* AAE-20779 simplified error messages
2024-03-14 14:52:48 +01:00
..
2024-03-06 09:48:56 +01:00

Alfresco ESlint Angular Library

Contains custom ESlint rules for Angular.

Documentation

See the ADF ESlint Angular section of the docs index for all available documentation on this library.

Prerequisites

This library doesn't require any additional software. Just install it with npm command from Install section below.

Install

npm install @alfresco/eslint-plugin-eslint-angular

Usage

If you want to add your own custom ESlint rules for Angular, make sure you're familiar with ESTree and JavaScript AST nodes. For rule creation refer to Angular ESlint documentation and Writing custom TS ESlint rules for Angular guide.

Custom rules need to be added to rules section of .eslintrc.json file. For example on how to do it refer to Basic Usage paragraph of Use none component view encapsulation rule.

License

Apache Version 2.0