@microsoft/eslint-plugin-power-apps

0.3.7 • Public • Published

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 eslint.config.js configuration file:

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:

{
    "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-jquery211-library
avoid-loadtheme
avoid-modals
avoid-ui-refreshribbon
avoid-unpub-api
avoid-window-top
do-not-make-parent-assumption
use-appsidepane-api 💡
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 💡

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.784latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.784
0.2.511,518
0.2.4913
0.2.33678
0.2.267
0.2.11417
0.2.10104
0.2.937
0.2.82
0.2.73
0.2.6244
0.2.21
0.2.11

Package Sidebar

Install

npm i @microsoft/eslint-plugin-power-apps

Weekly Downloads

2,500

Version

0.3.7

License

MIT

Unpacked Size

172 kB

Total Files

32

Last publish

Collaborators

  • powerapps-admin
  • microsoft1es