Skip to content

Commit

Permalink
fix(cli): 修复 prettier 参数类型定义
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Apr 23, 2019
1 parent b470527 commit cd835e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/taro-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"postcss-reporter": "^6.0.1",
"postcss-taro-unit-transform": "1.2.15",
"postcss-url": "^7.3.2",
"prettier": "^1.15.3",
"prettier": "^1.16.4",
"prop-types": "^15.6.2",
"resolve": "^1.6.0",
"semver": "^5.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-cli/src/util/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface IPrettierConfig {
arrowParens?: 'avoid' | 'always',
rangeStart?: number,
rangeEnd?: number,
parser?: 'babylon' | 'flow' | 'typescript' | 'css' | 'scss' | 'less' | 'json' | 'json5' | 'json-stringify' | 'graphql' | 'markdown' | 'mdx' | 'html' | 'vue' | 'angular' | 'yaml' | 'babel',
parser?: 'babel' | 'babylon' | 'flow' | 'typescript' | 'css' | 'scss' | 'less' | 'json' | 'json5' | 'json-stringify' | 'graphql' | 'markdown' | 'mdx' | 'html' | 'vue' | 'angular' | 'yaml',
filepath?: string,
requirePragma?: boolean,
insertPragma?: boolean,
Expand Down

0 comments on commit cd835e9

Please sign in to comment.