eslint-plugin-angularjs-upgrade
v0.0.2
Published
Set of linting rules to help make upgrading from AngularJS to Angular (2) easier.
Downloads
5
Maintainers
Readme
ESLint-plugin-AngularJS-upgrade
Plugin to help make the upgrade from AngularJS to Angular (2) easier.
Installation
Install ESLint either locally or globally.
$ yarn add eslint
If you installed ESLint globally, you have to install React plugin globally too. Otherwise, install it locally.
$ yarn add eslint-plugin-angularjs-upgrade
Configuration
Add plugins section and specify ESLint-plugin-AngularJS-upgrade as a plugin.
{
"plugins": [
"angularjs-upgrade"
]
}
Enable all of the rules that you would like to use. Use our preset to get reasonable defaults quickly, and/or choose your own:
"rules": {
"angularjs-upgrade/no-utility-functions": "error"
}