@humanwhocodes/config-array
Advanced tools
Comparing version 0.6.0 to 0.7.0
# Changelog | ||
## [0.7.0](https://www.github.com/humanwhocodes/config-array/compare/v0.6.0...v0.7.0) (2021-09-24) | ||
### Features | ||
* Only object configs by default ([5645f24](https://www.github.com/humanwhocodes/config-array/commit/5645f241b2412a3263a02ef9e3a9bd19cc86035d)) | ||
## [0.6.0](https://www.github.com/humanwhocodes/config-array/compare/v0.5.0...v0.6.0) (2021-04-20) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@humanwhocodes/config-array", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Glob-based configuration matching.", | ||
@@ -56,3 +56,3 @@ "author": "Nicholas C. Zakas", | ||
"lint-staged": "^10.2.8", | ||
"mocha": "^6.1.4", | ||
"mocha": "^6.2.3", | ||
"nyc": "^14.1.1", | ||
@@ -59,0 +59,0 @@ "rollup": "^1.12.3", |
@@ -109,4 +109,7 @@ # Config Array | ||
// additional items in each config | ||
schema: mySchema | ||
// additional item schemas in each config | ||
schema: mySchema, | ||
// additional config types supported (default: []) | ||
extraConfigTypes: ["array", "function"]; | ||
}); | ||
@@ -117,3 +120,3 @@ ``` | ||
Config arrays can be multidimensional, so it's possible for a config array to contain another config array, such as: | ||
Config arrays can be multidimensional, so it's possible for a config array to contain another config array when `extraConfigTypes` contains `"array"`, such as: | ||
@@ -180,3 +183,3 @@ ```js | ||
Config arrays can also include config functions. A config function accepts a single parameter, `context` (defined by you), and must return either a config object or a config array (it cannot return another function). Config functions allow end users to execute code in the creation of appropriate config objects. Here's an example: | ||
Config arrays can also include config functions when `extraConfigTypes` contains `"function"`. A config function accepts a single parameter, `context` (defined by you), and must return either a config object or a config array (it cannot return another function). Config functions allow end users to execute code in the creation of appropriate config objects. Here's an example: | ||
@@ -183,0 +186,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37800
270