-
-
Notifications
You must be signed in to change notification settings - Fork 27
Convert package to pure ESM + cleanup #74
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
Conversation
I really don't know how it worked before, and why it stopped now.
@@ -50,7 +45,10 @@ | |||
"*.ts" | |||
], | |||
"rules": { | |||
"@typescript-eslint/no-unnecessary-condition": "error", | |||
"ava/assertion-arguments": "off", |
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.
strip-indent
is not ESM and the whole TS/ESM setup makes it impossible to get its types without using allowSyntheticDefaultImports
in tsconfig
, which can create a broken ESM module.
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.
@@ -50,7 +45,10 @@ | |||
"*.ts" | |||
], | |||
"rules": { | |||
"@typescript-eslint/no-unnecessary-condition": "error", | |||
"ava/assertion-arguments": "off", | |||
"@typescript-eslint/dot-notation": "off", |
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.
Wait for xojs/eslint-config-xo-typescript#34
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-non-null-asserted-optional-chain": "off", |
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.
Unfortunate but most tests use regex.test()
and it won't be a problem if the result is regex.test(undefined)
] | ||
"nonSemVerExperiments": { | ||
"configurableModuleFormat": true | ||
} |
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.
@yakov116 this is a breaking change, so if you have any breaking changes in mind, I'll wait before releasing it. It can stay here a week anyway |
Not that I can think of. Maybe drop One minor thing needs to be updated
|
Sure it does: Internally we use
You can reach that page by visiting a random repository, editing a file, and clicking "Propose file change". The following page will be a compare page with the |
We do have some deprecated methods though 👌 Pushed: 3a2fddf |
Closes #72