-
Notifications
You must be signed in to change notification settings - Fork 13
chore: modernize lint and tsconfig setup #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| import powerbiVisuals from "eslint-plugin-powerbi-visuals"; | ||
|
|
||
| export default [ | ||
| { | ||
| ignores: [ | ||
| "node_modules/**", | ||
| "dist/**", | ||
| "coverage/**", | ||
| "test/**", | ||
| "karma.conf.ts", | ||
| "webpack.config.js", | ||
| "lib/**", | ||
| ".tmp/**", | ||
| ], | ||
|
Comment on lines
+5
to
+14
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The list looks copy-pasted from a Power BI visual template. This repo is a utility library with only Suggested trim: ignores: [
"node_modules/**",
"lib/**",
],If the boilerplate entries are kept intentionally (e.g. anticipating a future test runner), a short comment would help future maintainers. |
||
| }, | ||
| { | ||
| ...powerbiVisuals.configs.recommended, | ||
| languageOptions: { | ||
| ...powerbiVisuals.configs.recommended.languageOptions, | ||
| parserOptions: { | ||
| project: "tsconfig.json", | ||
| tsconfigRootDir: import.meta.dirname, | ||
| }, | ||
| }, | ||
| }, | ||
| ]; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This bullet doesn't match the actual tsconfig changes
Two inaccuracies vs. the
tsconfig.jsonshipped in this PR:ignoreDeprecationsis not set anywhere in the newtsconfig.json. Either drop it from this bullet or add it to the config (TS 6 reports several deprecations from the previous setup —ignoreDeprecations: "6.0"is what this line implies).strict: trueis effectively disabled. Right next to it the PR setsstrictNullChecks: false,strictPropertyInitialization: false,noImplicitAny: false, which turns off the three biggest strict-mode checks. Advertising "strict" here is misleading — consumers won't get strict-mode guarantees. Either remove the claim or actually enable the sub-flags.