Commit graph

15 commits

Author SHA1 Message Date
l198881
029b69e482
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)
2021-05-26 15:23:19 -03:00
Saad Quadri
7c6f83f719 Add Flow type definitions (#260) 2018-04-17 11:26:17 +07:00
Josh Junon
e80f02e2dd Disable unicorn/no-hex-escape for template tests 2018-02-14 18:30:52 -08:00
Josh Junon
52823001a5 Revert "Fix linting"
This reverts commit 12d1276b36.
2018-02-14 18:28:22 -08:00
Sindre Sorhus
12d1276b36 Fix linting 2018-02-15 00:41:45 +07:00
Kayla Washburn
678152cf19 Update chalk to use the latest updates to supports-color (#247) 2018-02-11 16:59:24 +07:00
Josh Junon
ede310303b add failing test for .visible bug 2017-10-23 20:12:16 -07:00
Danny Kirchmeier
dc092b4a5f Add .visible for emitting text only when enabled (fixes #192) 2017-10-23 19:44:46 -07:00
Josh Junon
69ac663f29 Fix undefined and null interpolated expressions (fixes #194) 2017-08-06 18:58:17 -07:00
Josh Junon
106f086aaf Rewrite templating system (closes #186, fixes #184) 2017-08-06 18:58:17 -07:00
Josh Junon
f0c0178d12 Allow multiple arguments in base chalk object (fixes #187) 2017-08-06 18:58:17 -07:00
Josh Junon
0827d3b632 Fix level when supportsColor returns falsey (fixes #176, #175) 2017-08-06 18:58:17 -07:00
Josh Junon
7a75399b72 Add failing template tests 2017-08-06 18:58:17 -07:00
Sindre Sorhus
4c4ba2df3d Fix template literal test 2017-07-23 22:24:56 +02:00
Kevin Mårtensson
4c4eb1fd0a Move testing to ava (#182) 2017-07-23 22:17:33 +02:00