mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
fix tslint issues
This commit is contained in:
Vendored
+6
-3
@@ -34,7 +34,9 @@ declare namespace braces {
|
||||
*/
|
||||
nodupes?: boolean;
|
||||
/**
|
||||
* When `braces.expand()` is used, or `options.expand` is true, brace patterns will automatically be [optimized](#optionsoptimize) when the difference between the range minimum and range maximum exceeds the `rangeLimit`. This is to prevent huge ranges from freezing your application.
|
||||
* When `braces.expand()` is used, or `options.expand` is true, brace patterns will automatically be [optimized](#optionsoptimize)
|
||||
* when the difference between the range minimum and range maximum exceeds the `rangeLimit`.
|
||||
* This is to prevent huge ranges from freezing your application.
|
||||
*
|
||||
* You can set this to any number, or change `options.rangeLimit` to `Inifinity` to disable this altogether.
|
||||
*
|
||||
@@ -48,7 +50,7 @@ declare namespace braces {
|
||||
*
|
||||
* // pattern does not exceed "rangeLimit", so it's NOT optimized
|
||||
* console.log(braces.expand('{1..100}'));
|
||||
* //=> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', '100']
|
||||
* //=> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11' ... '89', 90', '91', '92', '93', '94', '95', '96', '97', '98', '99', '100']
|
||||
* ```
|
||||
*/
|
||||
rangeLimit?: number;
|
||||
@@ -74,7 +76,8 @@ declare namespace braces {
|
||||
*
|
||||
* Unfortunately, regex quantifiers happen to share the same syntax as [Bash lists](#lists)
|
||||
*
|
||||
* The `quantifiers` option tells braces to detect when [regex quantifiers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#quantifiers) are defined in the given pattern, and not to try to expand them as lists.
|
||||
* The `quantifiers` option tells braces to detect when [regex quantifiers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#quantifiers)
|
||||
* are defined in the given pattern, and not to try to expand them as lists.
|
||||
*
|
||||
* @default undefined
|
||||
*
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"max-line-length": false
|
||||
}
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Vendored
+7
-3
@@ -25,7 +25,9 @@ declare namespace micromatch {
|
||||
*/
|
||||
basename?: boolean;
|
||||
/**
|
||||
* Enabled by default, this option enforces bash-like behavior with stars immediately following a bracket expression. Bash bracket expressions are similar to regex character classes, but unlike regex, a star following a bracket expression **does not repeat the bracketed characters**. Instead, the star is treated the same as an other star.
|
||||
* Enabled by default, this option enforces bash-like behavior with stars immediately following a bracket expression.
|
||||
* Bash bracket expressions are similar to regex character classes, but unlike regex, a star following a bracket expression **does not repeat the bracketed characters**.
|
||||
* Instead, the star is treated the same as an other star.
|
||||
*
|
||||
* @default true
|
||||
*
|
||||
@@ -128,7 +130,8 @@ declare namespace micromatch {
|
||||
*/
|
||||
nonull?: boolean;
|
||||
/**
|
||||
* If `true`, when no matches are found the actual (arrayified) glob pattern is returned instead of an empty array. Same behavior as [minimatch](https://github.com/isaacs/minimatch) option `nonull`.
|
||||
* If `true`, when no matches are found the actual (arrayified) glob pattern is returned instead of an empty array.
|
||||
* Same behavior as [minimatch](https://github.com/isaacs/minimatch) option `nonull`.
|
||||
*
|
||||
* @default undefined
|
||||
*/
|
||||
@@ -408,7 +411,8 @@ interface Micromatch {
|
||||
contains(str: string, patterns: string | string[], options?: micromatch.Options): boolean;
|
||||
|
||||
/**
|
||||
* Filter the keys of the given object with the given `glob` pattern and `options`. Does not attempt to match nested keys. If you need this feature, use [glob-object](https://github.com/jonschlinkert/glob-object) instead.
|
||||
* Filter the keys of the given object with the given `glob` pattern and `options`. Does not attempt to match nested keys.
|
||||
* If you need this feature, use [glob-object](https://github.com/jonschlinkert/glob-object) instead.
|
||||
*
|
||||
* @param object The object with keys to filter.
|
||||
* @param patterns One or more glob patterns to use for matching.
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"max-line-length": false
|
||||
}
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user