cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sidg
Microsoft
Microsoft

Power Apps ESLint npm package public preview

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
3 REPLIES 3

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",
  ],

 

filcole
Advocate I
Advocate I

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 .

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,994)