Skip to content
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

textlitn-scripts: Prevent duplicated register #781

Open
azu opened this issue May 23, 2021 · 2 comments
Open

textlitn-scripts: Prevent duplicated register #781

azu opened this issue May 23, 2021 · 2 comments

Comments

@azu
Copy link
Member

azu commented May 23, 2021

From textlint/textlint-scripts#38

--require textlint-scripts/register-ts
--require textlint-scripts/register-ts

throw error TS7006: Parameter 'obj' implicitly has an 'any' type.

We need to detect .mocharc file and prevent duplicated register.

@azu
Copy link
Member Author

azu commented May 23, 2021

https://mochajs.org/#-config-path
--no-config will helps it.

@azu azu added the Type: Bug Bug or Bug fixes label May 23, 2021
@azu
Copy link
Member Author

azu commented May 23, 2021

However, if pass --no-config by default, the user can not setting other config via .mocharc.*.
for example, timeout options should be configurable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant