When developing Power BI visuals, you can use the eslint-plugin-powerbi-visuals plugin to apply recommended linting rules specifically tailored for the Power BI Visuals environment. This is typically done by importing the plugin's recommended configuration and applying it to your eslint.config.mjs file.
To avoid linting unnecessary files, it is recommended to include an ignores block for directories like node_modules, dist, .vscode, and .tmp.
import powerbiVisualsConfigs from "eslint-plugin-powerbi-visuals";
export default [
powerbiVisualsConfigs.configs.recommended,
{
ignores: ["node_modules/**", "dist/**", ".vscode/**", ".tmp/**"],
},
];