Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 31 additions & 16 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,35 @@
import tseslint from "typescript-eslint";
import powerbiVisualsConfigs from "eslint-plugin-powerbi-visuals";
import tseslint from 'typescript-eslint';
import path from 'path';
Comment thread
Demonkratiy marked this conversation as resolved.

export default [
...tseslint.configs.recommended,
powerbiVisualsConfigs.configs.recommended,
{
ignores: [
"node_modules/**",
"dist/**",
".vscode/**",
".tmp/**",
"coverage/**",
"test/**",
"karma.conf.ts",
"test.webpack.config.js",
".github/**",
],
// TEMPORARY SOLUTION: Setting tsconfigRootDir for parserOptions to fix ESLint config resolution.
// TODO: Update this approach when upgrading to newer versions of eslint-plugin-powerbi-visuals or ESLint.

const recommended = {
...powerbiVisualsConfigs.configs.recommended,
languageOptions: {
...powerbiVisualsConfigs.configs.recommended.languageOptions,
parserOptions: {
...powerbiVisualsConfigs.configs.recommended.languageOptions?.parserOptions,
tsconfigRootDir: path.resolve(),
},
},
};


export default [
recommended,
Comment thread
Demonkratiy marked this conversation as resolved.
{
ignores: [
"node_modules/**",
"dist/**",
".vscode/**",
".tmp/**",
"coverage/**",
"test/**",
"karma.conf.ts",
"test.webpack.config.js",
".github/**",
],
},
];
Loading
Loading