Skip to content

Commit

Permalink
chore: update dependency prettier to v2.3.0 (#2586)
Browse files Browse the repository at this point in the history
* chore: update dependency prettier to v2.3.0

* style: format code according to prettier 2.3.0

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: escapedcat <[email protected]>
  • Loading branch information
3 people authored May 10, 2021
1 parent 0e76a84 commit eaa453b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions @commitlint/load/src/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export default async function load(
parserPreset: config.parserPreset,
});

const preset = (pickConfig(
const preset = pickConfig(
mergeWith(extended, config, w)
) as unknown) as UserPreset;
) as unknown as UserPreset;
preset.plugins = {};

// TODO: check if this is still necessary with the new factory based conventional changelog parsers
Expand Down
10 changes: 4 additions & 6 deletions @commitlint/types/src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,10 @@ export type QualifiedRuleConfig<T> =
| (() => RuleConfigTuple<Promise<T>>)
| RuleConfigTuple<T>;

export type RuleConfig<
V = RuleConfigQuality.Qualified,
T = void
> = V extends RuleConfigQuality.Qualified
? RuleConfigTuple<T>
: QualifiedRuleConfig<T>;
export type RuleConfig<V = RuleConfigQuality.Qualified, T = void> =
V extends RuleConfigQuality.Qualified
? RuleConfigTuple<T>
: QualifiedRuleConfig<T>;

export type CaseRuleConfig<V = RuleConfigQuality.User> = RuleConfig<
V,
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8329,9 +8329,9 @@ prepend-http@^2.0.0:
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=

prettier@^2.0.5:
version "2.2.1"
resolved "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
version "2.3.0"
resolved "https://registry.npmjs.org/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18"
integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==

pretty-format@^26.0.0:
version "26.6.0"
Expand Down

0 comments on commit eaa453b

Please sign in to comment.