neb636 / eslint-plugin-angularjs-upgrade

Plugin to help make the upgrade from AngularJS to Angular (2) easier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Plugin to help make the upgrade from AngularJS to Angular (2) easier


Languages

Language:JavaScript 100.0%