-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update linting to use Stylelint v15 and Prettier (#179)
* `stylelint-config-gds` has been updated to v1.0.0 to support Stylelint v15 * Stylelint v15 [deprecated its stylistic rules](https://stylelint.io/migration-guide/to-15), and recommends using Prettier to format (S)CSS This PR updates Stylelint dependencies, and adds Prettier to format all code, except JavaScript which is formatted using StandardJS. This is the same approach used by `govuk-frontend` (broadly speaking).
- Loading branch information
1 parent
5cfb5ee
commit 00166d0
Showing
22 changed files
with
207 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: "monthly" | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
interval: 'monthly' | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: "monthly" | ||
interval: 'monthly' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# JavaScript (formatted with Standard) | ||
**/*.js | ||
**/*.mjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
Use these options to customise the appearance, content and behaviour of any layout. | ||
|
||
| Name | Type | Description | | ||
| :--- | :--- | :---------- | | ||
| **layout** | string | Page layout. | | ||
| **includeInBreadcrumbs** | boolean | Include page as the last item in any breadcrumbs. Default is `false`. | | ||
| **order** | number | Ranking of page in navigation. Lower numbers appear before pages with a higher number. | | ||
| **title** | string | Page title. | | ||
| **description** | string | Page description. | | ||
| **opengraphImage** | object | Open Graph image that appears on social media networks. | | ||
| **opengraphImage.src** | string | Path to Open Graph image. Can be a relative or absolute URL. This value overrides `opengraphImageUrl` in plugin options. | | ||
| **opengraphImage.alt** | string | Alternative text for Open Graph image. | | ||
| **aside** | object | Small portion of content that is indirectly related to the main content. | | ||
| **aside.title** | string | Title for aside. | | ||
| **aside.content** | string | Content for aside. Accepts Markdown. | | ||
| **related** | object | Related links. See [related](#options-for-related). | | ||
| Name | Type | Description | | ||
| :----------------------- | :------ | :----------------------------------------------------------------------------------------------------------------------- | | ||
| **layout** | string | Page layout. | | ||
| **includeInBreadcrumbs** | boolean | Include page as the last item in any breadcrumbs. Default is `false`. | | ||
| **order** | number | Ranking of page in navigation. Lower numbers appear before pages with a higher number. | | ||
| **title** | string | Page title. | | ||
| **description** | string | Page description. | | ||
| **opengraphImage** | object | Open Graph image that appears on social media networks. | | ||
| **opengraphImage.src** | string | Path to Open Graph image. Can be a relative or absolute URL. This value overrides `opengraphImageUrl` in plugin options. | | ||
| **opengraphImage.alt** | string | Alternative text for Open Graph image. | | ||
| **aside** | object | Small portion of content that is indirectly related to the main content. | | ||
| **aside.title** | string | Title for aside. | | ||
| **aside.content** | string | Content for aside. Accepts Markdown. | | ||
| **related** | object | Related links. See [related](#options-for-related). | | ||
|
||
### Options for related | ||
|
||
With one section: | ||
|
||
| Name | Type | Description | | ||
| :--- | :--- | :---------- | | ||
| **title** | string | Title for group of related links. Default is `'Related content'`. | | ||
| **items** | array | See [items](#options-for-items). | | ||
| **subsections** | array | Title for sub-group of related links. | | ||
| **subsections.title** | string | | | ||
| **subsections.items** | array | See [items](#options-for-items). | | ||
| Name | Type | Description | | ||
| :-------------------- | :----- | :---------------------------------------------------------------- | | ||
| **title** | string | Title for group of related links. Default is `'Related content'`. | | ||
| **items** | array | See [items](#options-for-items). | | ||
| **subsections** | array | Title for sub-group of related links. | | ||
| **subsections.title** | string | | | ||
| **subsections.items** | array | See [items](#options-for-items). | | ||
|
||
With multiple sections: | ||
|
||
| Name | Type | Description | | ||
| :--- | :--- | :---------- | | ||
| Name | Type | Description | | ||
| :----------- | :---- | :--------------------------------- | | ||
| **sections** | array | See [items](#options-for-related). | | ||
|
||
### Options for items | ||
|
||
| Name | Type | Description | | ||
| :--- | :--- | :---------- | | ||
| **text** | string | Title of related content. | | ||
| Name | Type | Description | | ||
| :------- | :----- | :---------------------------- | | ||
| **text** | string | Title of related content. | | ||
| **href** | string | Link for the related content. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.