Skip to content

Commit 291297e

Browse files
Add comments
1 parent 59c1ab9 commit 291297e

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

dotcom-rendering/.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ module.exports = {
6363
'eslint:recommended',
6464
'@guardian/eslint-config-typescript',
6565
'plugin:jsx-a11y/recommended',
66-
'prettier',
6766
'plugin:ssr-friendly/recommended',
6867
'plugin:storybook/recommended',
68+
// eslint-config-prettier disables formatting rules that conflict with prettier
69+
// needs to go last so it can override other configuration. See https://github.com/prettier/eslint-config-prettier#installation
70+
'prettier',
6971
],
7072
parser: '@typescript-eslint/parser',
7173
parserOptions: {

dotcom-rendering/src/components/ContainerTitle.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default {
55
title: 'Components/ContainerTitle',
66
globals: {
77
viewport: {
8+
// This has the effect of turning off the viewports addon by default
89
value: 'doesNotExist',
910
isRotated: false,
1011
},

dotcom-rendering/src/components/FrontSection.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export default {
9292

9393
globals: {
9494
viewport: {
95+
// This has the effect of turning off the viewports addon by default
9596
value: 'doesNotExist',
9697
isRotated: false,
9798
},

dotcom-rendering/src/components/LabsSection.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default {
2323

2424
globals: {
2525
viewport: {
26+
// This has the effect of turning off the viewports addon by default
2627
value: 'doesNotExist',
2728
isRotated: false,
2829
},

dotcom-rendering/src/components/Section.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default {
1212
title: 'Components/Section',
1313
globals: {
1414
viewport: {
15+
// This has the effect of turning off the viewports addon by default
1516
value: 'doesNotExist',
1617
isRotated: false,
1718
},

0 commit comments

Comments
 (0)