Microsoft announced the public preview of ESLint rules for Power Apps model-driven apps and Dynamics 365 CE.
If you already have the ESLint extension for Visual Studio Code installed, you can get started by adding Power Apps ESLint npm package name and version in package.json in the build tools. Note that the version number will change when this becomes generally available.
Next step is to configure the ESLint rules in the eslintrc file.
Please refer below link for more information –