ESLint rules for Microsoft Power Apps web resources
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.
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"
}
}
🔧 = has fix,💡 = has suggestion