* 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:
l198881 2021-05-26 15:23:19 -03:00 committed by GitHub
parent 9776a2ae5b
commit 029b69e482
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 760 additions and 479 deletions

View file

@ -5,17 +5,16 @@
"license": "MIT",
"repository": "chalk/chalk",
"engines": {
"node": ">=4"
"node": ">=6"
},
"scripts": {
"test": "xo && tsc --project types && flow --max-warnings=0 && nyc ava",
"bench": "matcha benchmark.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
"test": "xo && nyc ava && tsd-check && flow",
"bench": "matcha benchmark.js"
},
"files": [
"index.js",
"templates.js",
"types/index.d.ts",
"index.d.ts",
"index.js.flow"
],
"keywords": [
@ -44,26 +43,23 @@
"dependencies": {
"ansi-styles": "^3.2.1",
"escape-string-regexp": "^1.0.5",
"supports-color": "^5.3.0"
"supports-color": "^6.0.0"
},
"devDependencies": {
"ava": "*",
"coveralls": "^3.0.0",
"execa": "^0.9.0",
"flow-bin": "^0.68.0",
"import-fresh": "^2.0.0",
"@sindresorhus/tsconfig": "^0.1.1",
"ava": "^1.0.1",
"coveralls": "^3.0.2",
"execa": "^1.0.0",
"flow-bin": "^0.89.0",
"import-fresh": "^3.0.0",
"matcha": "^0.7.0",
"nyc": "^11.0.2",
"nyc": "^13.1.0",
"resolve-from": "^4.0.0",
"typescript": "^2.5.3",
"xo": "*"
"tsd-check": "^0.3.0",
"xo": "^0.23.0"
},
"types": "types/index.d.ts",
"types": "index.d.ts",
"xo": {
"envs": [
"node",
"mocha"
],
"ignores": [
"test/_flow.js"
]