@microsoft/eslint-plugin-power-apps
v0.2.51
Published
Power Apps checker ESLint plug-in containing the rules for Microsoft Power Apps
Downloads
13,260
Readme
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 | | 💡 |