0.2.33 ā€¢ Published 6 months ago

@microsoft/eslint-plugin-power-apps v0.2.33

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

eslint-plugin-microsoft-power-apps

ESLint rules for Microsoft Power Apps web resources

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install @microsoft/eslint-plugin-power-apps:

$ npm install @microsoft/eslint-plugin-power-apps --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install @microsoft/eslint-plugin-power-apps globally.

Usage

Add @microsoft/power-apps to the plugins section of your .eslintrc configuration file:

{
    "plugins": [
        "@microsoft/power-apps"
    ]
}

Then configure the rules you want to use under the rules section:

{
    "rules": {
        "@microsoft/power-apps/rule-name": "error"
    }
}

Supported Rules

šŸ”§ = has fix,šŸ’” = has suggestion

RulešŸ”§šŸ’”
avoid-2011-apišŸ’”
avoid-browser-specific-apišŸ’”
avoid-crm2011-service-odata
avoid-crm2011-service-soap
avoid-dom-form-event
avoid-dom-form
avoid-isactivitytypešŸ’”
avoid-modals
avoid-unpub-api
avoid-ui-refreshribbon
avoid-window-top
do-not-make-parent-assumption
use-async
use-cached-webresource
use-client-contextšŸ’”
use-getsecurityroleprivilegesinfo
use-global-contextšŸ’”
use-grid-apišŸ’”
use-navigation-apišŸ’”
use-offlinešŸ’”
use-org-settingšŸ’”
use-relative-urišŸ”§šŸ’”
use-utility-dialogsšŸ’”
use-appsidepane-apišŸ’”
0.2.26

7 months ago

0.2.33

6 months ago

0.2.11

1 year ago

0.2.7

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.10

1 year ago

0.2.6

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago