textlint icon indicating copy to clipboard operation
textlint copied to clipboard

textlitn-scripts: Prevent duplicated register

Open azu opened this issue 4 years ago • 2 comments

From https://github.com/textlint/textlint-scripts/issues/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 avatar May 23 '21 02:05 azu

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

azu avatar May 23 '21 02:05 azu

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

azu avatar May 23 '21 02:05 azu