textlint
textlint copied to clipboard
textlitn-scripts: Prevent duplicated register
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.
https://mochajs.org/#-config-path
--no-config will helps it.
However, if pass --no-config by default, the user can not setting other config via .mocharc.*.
for example, timeout options should be configurable.