diff --git a/package.json b/package.json index ad7d5ac04..0a28ecb73 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "docs-json": "ts-node -P scripts/tsconfig.json scripts/docs-json", "version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md", "shipit": "npm run build && npm run readmes && npm run npmpub", - "prettier": "prettier src/**/* --write --ignore-unknown" + "prettier": "prettier --write --ignore-unknown \"**/*\"" }, "dependencies": { "tslib": "^2.3.1" @@ -100,8 +100,6 @@ } }, "lint-staged": { - "*": [ - "prettier src/**/* --write --ignore-unknown" - ] + "**/*": "prettier --write --ignore-unknown" } } diff --git a/scripts/docs/dgeni/templates/common.template.html b/scripts/docs/dgeni/templates/common.template.html index 6c7043cae..ec70e3f9b 100644 --- a/scripts/docs/dgeni/templates/common.template.html +++ b/scripts/docs/dgeni/templates/common.template.html @@ -12,7 +12,7 @@ docType: "<$ doc.docType $>" --- <@- macro interfaceTable(interface) -@> <@ for export in doc.moduleDoc.exports -@> <@ if export.name == interface @> -
| Param | @@ -23,15 +23,11 @@ docType: "<$ doc.docType $>"|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| - <$ param.name $> - | +<$ param.name $> |
<$ param.returnType | escape $>
|
- - <$ param.description | marked $> <@ if param.optional @>(optional)<@ endif @> - | +<$ param.description | marked $> <@ if param.optional @>(optional)<@ endif @> |
| <@ if isDirective @>Attr<@ else @>Param<@ endif @> | @@ -53,12 +49,8 @@ docType: "<$ doc.docType $>"|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| - <$ param.name $> <@- if param.alias @>| <$ param.alias $><@ endif -@> - | -- <$ typeList(param.typeList) $> - | +<$ param.name $> <@- if param.alias @>| <$ param.alias $><@ endif -@> | +<$ typeList(param.typeList) $> |
<$ param.description | marked $> <@- if param.defaultValue @>
(default: <$ param.defaultValue $>) @@ -129,9 +121,7 @@ true @>Repo: - - <$ prop.repo $> - + <$ prop.repo $> <# --- Install commands --- #> @@ -162,7 +152,7 @@ $ npm install @ionic-native/<$ doc.npmId $>Usage<$ doc.usage | marked $> <@ endif @> <# --- Plugin attributes --- #> <@- if doc.properties -@>Attributes:-
|