web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps ESLint npm ...
Power Apps
Unanswered

Power Apps ESLint npm package public preview

(3) ShareShare
ReportReport
Posted on by Microsoft Employee

Please use this thread to discuss feedback/suggestions/concerns on the ESLint rules for Power Apps.

 

How to try this feature?

  1. Install ESLint extension for Visual Studio Code (if not already installed)
  2. Add Power Apps ESLint npm package name and version in the package.json file in build tools
  3. Configure ESLint rules in the eslintrc file
  4. Look for issues in the problems console or inline in your JS/TS code
I have the same question (0)
  • ScottDurow Profile Picture
    1,039 on at

    Thank you for publishing theses rules!
    It would be great to get a base/recommended configuration to extend from similar to other eslint plugins.
    This would make it easier to keep up to date with the latest rules added - e.g.

     "extends": [
     ...
     "plugin:microsoft/power-apps/recommended",
     ],

     

  • Phil_Cole Profile Picture
    133 on at

    This is great.  If you want to implement this, but have multiple warnings that might take a while to fix take a look at the --max-warnings flag in EsLint when including EsLint in a DevOps pipeline/github workflow. 

     

    This allows a code base to be gradually improved in a similar way to warnings thresholds with the solution checker.

     

    https://eslint.org/docs/latest/user-guide/command-line-interface#--max-warnings 

    npx eslint --max-warnings 10 file.js

    or for the current directory and below

    npx eslint --max-warnings 10 .
  • Jesse Parsons Profile Picture
    Microsoft Employee on at

    Great suggestion, Scott!  We've added this to our backlog and will enhance the documentation once we've shipped the configurations.

  • DavidMattson1 Profile Picture
    2 on at

    I love this ESLINT rules as they give new devs insight into what is not supported. And they keep more experience devs apprised of issues they may not have previously noticed. This has been my first experience with ESLINT rules as a whole. These are wonderful! However, it is quite possible that I am doing something wrong. I have a js library that I have been modifying to remove all the unsupported Dynamics 365 code. I realized a while into editing it that it has stopped underlining the Dynamics 365 problems. It continues to underline any of the default/OOTB rules I have set up from ESLINT. This happens the same in both VS2022 and VSCode. I started copying and pasting the functions from the original from the modified version of the code to narrow down the issue. When I fix the last line containing Xrm.Page the problems listed ALL disappear. Including things that are still issues like the usage of $() and DOM manipulation 😬. Things I definitely know are unsupported and should be removed from the code base.

    Are there any thoughts as to what might be the issue? My workaround for the moment is to leave that line until the last. This is not only happening on this file but others.

    2022-11-09 08_49_40-Terminals 4.0.1 (Files store).png
  • dmcweeney Profile Picture
    14 on at

    Is there a github site for this package yet?

  • Phil_Cole Profile Picture
    133 on at

    I'm not aware of one.  It would be nice to see.  It looks like the source code can be seen after installation of the module in node_modules\@microsoft\eslint-plugin-power-apps.

  • dmcweeney Profile Picture
    14 on at

    I thought it would be a minimum collab requirement at this stage especially for logging issues and requests!

  • Jesse Parsons Profile Picture
    Microsoft Employee on at

    I've sent you a private message David so that we can look into it together.

  • Jesse Parsons Profile Picture
    Microsoft Employee on at

    Moving to GitHub is in our long term roadmap, but we do not have an ETA for this yet.  It will be great to work with the community on rule collaboration and issues!

     

    cc @sidg 

  • Jesse Parsons Profile Picture
    Microsoft Employee on at

    As discussed offline, we've released a fix for this.  The current rule only flags violations if a call to Mscrm or Xrm is present.  As a non-breaking change, we've released version 0.2.8 of the ESLint rules on NPM which add a requireXrm option to a few rules which have this behavior.  Setting this option to false will flag all violations regardless of Mscrm or Xrm usage.

     

    See updated docs:
    avoid-dom-form Power Apps checker reference - Power Apps | Microsoft Learn

    avoid-dom-form-event Power Apps checker reference - Power Apps | Microsoft Learn

    use-utility-dialogs Power Apps checker reference - Power Apps | Microsoft Learn

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 308

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard