Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
chore: ensure all files have been prettier-ified (#39)
Browse files Browse the repository at this point in the history
The goal is to make sure that every files (supported by prettier) are correctly formatted.
  • Loading branch information
yhuard authored and emeryro committed Feb 27, 2019
1 parent b06b04d commit ec9ef71
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pipeline:
image: node:dubnium
commands:
- yarn install --frozen-lockfile
- yarn lint
- yarn lint && yarn pretty-check
when:
matrix:
TEST: lint
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"lint:js": "eslint .",
"lint": "npm run lint:js",
"postinstall": "lerna run postinstall && lerna run prepublish",
"pretty-check": "prettier --check \"src/**/*.{md,mdx,html,json,yml,js}\"",
"publish": "lerna publish",
"publish-canary": "lerna publish --canary --yes",
"publish-next": "lerna publish --npm-tag=next --bump=prerelease",
Expand Down
2 changes: 1 addition & 1 deletion src/ec/packages/ec-component-site-header/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# ECL Twig - EC SIte Header component
# ECL Twig - EC Site Header component
45 changes: 23 additions & 22 deletions src/ec/packages/ec-component-site-header/docs/site-header.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,28 @@ npm install --save @ecl-twig/ec-component-site-header

### Example :

<!-- prettier-ignore -->
```twig
{% include 'path/to/site-header.html.twig' with {
icon_file_path: '/path-to-the-icons-file',
language: {
url: '/example',
code: 'en',
label: 'English',
},
header_link: {
url: '/example-1',
aria_label: 'European Commission',
},
header_image: {
src: '',
alt: 'European Commission logo',
title: 'European Commission',
},
search_form: {
button: {
label: 'Search',
},
},
} %}
{% include 'path/to/site-header.html.twig' with {
icon_file_path: '/path-to-the-icons-file',
language: {
url: '/example',
code: 'en',
label: 'English',
},
header_link: {
url: '/example-1',
aria_label: 'European Commission',
},
header_image: {
src: '',
alt: 'European Commission logo',
title: 'European Commission',
},
search_form: {
button: {
label: 'Search',
},
},
} %}
```
2 changes: 1 addition & 1 deletion src/ec/packages/ec-component-tag/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# ECL Twig - EC Tag component
# ECL Twig - EC Tag component
1 change: 1 addition & 0 deletions src/eu/packages/eu-component-link/docs/link.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ npm install --save @ecl-twig/eu-component-link
- "value" (string) Attribute value, eg: 'data-test-1'

### Example:

<!-- prettier-ignore -->
```twig
{% include 'path/to/icon.html.twig' with {
Expand Down

0 comments on commit ec9ef71

Please sign in to comment.