Apr. (#5)
* Fix XO linting and update some dev dependencies Fixes #275 * Add some badges to the readme * Tiny travis.yml tweak * Require Node.js 6 * Validate the `level` option Fixes #248 * Add failing test for #234 (#235) * Add type definitions badge (#286) * Add Tidelift mention in the readme * Replace RawGit URL Fixes #305 * Fix ignore chars regex flags in rainbow example (#306) Use global matches rather than stopping after the first match. * Strict mode in Flow definition (#309) * Add security section * Add docs comments and tests for TypeScript definitions (#299) Fixes #293 * Update dependencies and meta tweaks * Type definition improvements * Enforce `chalk.constructor` to be called with `new` in TypeScript * Add extra level/enabled property info in the readme (#308) * Code style tweaks * Change tagged template literal argument type to accept `unknown` instead of just `string` (#316)
This commit is contained in:
parent
9776a2ae5b
commit
029b69e482
26 changed files with 760 additions and 479 deletions
|
|
@ -9,10 +9,6 @@ chalk.constructor({level: 1});
|
|||
new chalk.constructor({enabled: 'true'});
|
||||
new chalk.constructor({enabled: true});
|
||||
|
||||
// $ExpectError (Can't pass in null)
|
||||
chalk.underline(null);
|
||||
chalk.underline('foo');
|
||||
|
||||
// $ExpectError (Can't have typo in chalk method)
|
||||
chalk.rd('foo');
|
||||
chalk.red('foo');
|
||||
|
|
@ -29,10 +25,6 @@ chalk.red.bgBlue.underline('foo');
|
|||
const badCtx = chalk.constructor({level: 4});
|
||||
const ctx = chalk.constructor({level: 3});
|
||||
|
||||
// $ExpectError (Can't pass in null)
|
||||
ctx(null);
|
||||
ctx('foo');
|
||||
|
||||
// $ExpectError (Can't have typo in method name)
|
||||
ctx.gry('foo');
|
||||
ctx.grey('foo');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue