Skip to content

Commit 784c724

Browse files
committed
chore: modernize lint and tsconfig setup
1 parent 0b7ec92 commit 784c724

9 files changed

Lines changed: 856 additions & 1631 deletions

.eslintignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11

2+
## 7.0.0
3+
4+
### Changed
5+
* Migrated ESLint config to flat-config ESM `eslint.config.mjs`.
6+
* Removed legacy `.eslintrc.js` and `.eslintignore` in favor of flat-config equivalents.
7+
* Updated TypeScript config for TS6 compatibility, including `ignoreDeprecations`, explicit `rootDir`, `strict: true`, and a modern `lib` target.
8+
* Documented why `skipLibCheck` is required for Power BI API declaration compatibility.
9+
10+
### Infrastructure
11+
* Lint config now uses ESLint 10 flat config with TypeScript ESLint 8.
12+
213
## 6.2.2
314
* Added missing `disabled` property to `FontPicker`
415

eslint.config.mjs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import powerbiVisuals from "eslint-plugin-powerbi-visuals";
2+
3+
export default [
4+
{
5+
ignores: [
6+
"node_modules/**",
7+
"dist/**",
8+
"coverage/**",
9+
"test/**",
10+
"karma.conf.ts",
11+
"webpack.config.js",
12+
"lib/**",
13+
".tmp/**",
14+
],
15+
},
16+
{
17+
...powerbiVisuals.configs.recommended,
18+
languageOptions: {
19+
...powerbiVisuals.configs.recommended.languageOptions,
20+
parserOptions: {
21+
project: "tsconfig.json",
22+
tsconfigRootDir: import.meta.dirname,
23+
},
24+
},
25+
},
26+
];

0 commit comments

Comments
 (0)