npm package: @microsoft/eslint-plugin-power-apps
Description: Power Apps checker ESLint plug-in containing the rules for Microsoft Power Apps
Author: Microsoft
Latest version: 0.5.0

# eslint-plugin-microsoft-power-apps

ESLint rules for Microsoft Power Apps web resources

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ 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 `eslint.config.js` configuration file:

```js
import microsoftPowerApps from "@microsoft/eslint-plugin-power-apps";

export default [
    {
        plugins:
        {
            "@microsoft/power-apps": microsoftPowerApps,
        }
    }
];
```


Then configure the rules you want to use under the rules section:

```json
{
    "rules": {
        "@microsoft/power-apps/rule-name": "error"
    }
}
```
## Supported Rules

🔧 = has fix,💡 = has suggestion

| Rule | 🔧 | 💡 |
| ---- | :---: | :---: |
| [avoid-2011-api](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/avoid-2011-api) | | 💡 |
| [avoid-browser-specific-api](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/avoid-browser-specific-api) | | 💡 |
| [avoid-crm2011-service-odata](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/avoid-crm2011-service-odata) | | |
| [avoid-crm2011-service-soap](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/avoid-crm2011-service-soap) | | |
| [avoid-dom-form-event](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/avoid-dom-form-event) | | |
| [avoid-dom-form](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/avoid-dom-form) | | |
| [avoid-isactivitytype](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/avoid-isactivitytype) | | 💡 |
| [avoid-jquery211-library](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/avoid-dom-form) | | |
| [avoid-loadtheme](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/avoid-dom-form) | | |
| [avoid-modals](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/avoid-modals) | | |
| [avoid-ui-refreshribbon](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/avoid-ui-refreshribbon) | | |
| [avoid-unpub-api](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/avoid-unpub-api) | | |
| [avoid-window-top](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/avoid-window-top) | | |
| [do-not-make-parent-assumption](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/do-not-make-parent-assumption) |
| [use-appsidepane-api](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/use-appsidepane-api) | | 💡 | | |
| [use-async](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/use-async) | | |
| [use-cached-webresource](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/use-cached-webresource) | | |
| [use-client-context](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/use-client-context) | | 💡 |
| [use-getsecurityroleprivilegesinfo](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/use-getsecurityroleprivilegesinfo) | | |
| [use-global-context](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/use-global-context) | | 💡 |
| [use-grid-api](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/use-grid-api) | | 💡 |
| [use-navigation-api](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/use-navigation-api) | | 💡 |
| [use-offline](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/use-offline) | | 💡 |
| [use-org-setting](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/use-org-setting) | | 💡 |
| [use-relative-uri](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/use-relative-uri) | 🔧 | 💡 |
| [use-utility-dialogs](https://learn.microsoft.com/power-apps/maker/data-platform/powerapps-checker/rules/web/use-utility-dialogs) | | 💡 |