Skip to content

Commit 864e94a

Browse files
authored
chore(project): update prettier to latest (#11542)
* chore(project): update prettier to latest * feat(prettier-config): update to bracketSameLine * chore(project): run prettier
1 parent a7964cd commit 864e94a

89 files changed

Lines changed: 250 additions & 341 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
-3.84 MB
Binary file not shown.
3.99 MB
Binary file not shown.

actions/add-review-labels/index.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ async function run() {
3030
return;
3131
}
3232

33-
const {
34-
data: permissionLevel,
35-
} = await octokit.repos.getCollaboratorPermissionLevel({
36-
owner: repository.owner.login,
37-
repo: repository.name,
38-
username: review.user.login,
39-
});
33+
const { data: permissionLevel } =
34+
await octokit.repos.getCollaboratorPermissionLevel({
35+
owner: repository.owner.login,
36+
repo: repository.name,
37+
username: review.user.login,
38+
});
4039

4140
// If the reviewer doesn't have one of the following permission levels
4241
// then ignore the event

config/eslint-config-carbon/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
"eslint-restricted-globals": "^0.2.0"
4949
},
5050
"devDependencies": {
51-
"prettier": "^2.2.1"
51+
"prettier": "^2.6.2"
5252
}
5353
}

config/prettier-config-carbon/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
'use strict';
99

1010
module.exports = {
11-
jsxBracketSameLine: true,
11+
bracketSameLine: true,
1212
printWidth: 80,
1313
singleQuote: true,
1414
trailingComma: 'es5',

config/prettier-config-carbon/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"prettier": "^2.1.0"
2525
},
2626
"devDependencies": {
27-
"prettier": "^2.2.1"
27+
"prettier": "^2.6.2"
2828
}
2929
}

config/stylelint-config-carbon/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"stylelint-scss": "^4.1.0"
3838
},
3939
"devDependencies": {
40-
"prettier": "^2.2.1",
40+
"prettier": "^2.6.2",
4141
"stylelint": "^14.3.0"
4242
}
4343
}

docs/developer-handbook.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@ prefix prevents potential conflicts with class names from the user.
322322
```html
323323
<div
324324
class="bx--inline-notification bx--inline-notification--error"
325-
role="alert"
326-
>
325+
role="alert">
327326
<div class="bx--inline-notification__details">...</div>
328327
</div>
329328
```

docs/migration/v11.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ will need to pass those into the `with` block in the import:
112112

113113
```scss
114114
@use '@carbon/styles' with (
115-
$prefix: 'cds',
115+
$prefix: 'cds'
116116
);
117117
```
118118

@@ -570,15 +570,15 @@ can configure Carbon on the main entrypoint:
570570

571571
```scss
572572
@use '@carbon/styles' with (
573-
$prefix: 'cds',
573+
$prefix: 'cds'
574574
);
575575
```
576576

577577
Or you can configure the `scss/_config.scss` directly:
578578

579579
```scss
580580
@use '@carbon/styles/config' with (
581-
$prefix: 'cds',
581+
$prefix: 'cds'
582582
);
583583
```
584584

@@ -1940,7 +1940,7 @@ You can use a "compatibility theme" by setting the `$fallback` to a value from
19401940
@use '@carbon/themes/scss/themes';
19411941
@use '@carbon/themes/scss/theme' with (
19421942
$fallback: compat.$g100,
1943-
$theme: themes.$g100,
1943+
$theme: themes.$g100
19441944
);
19451945
```
19461946

e2e/components/FileUploader/FileUploader-test.e2e.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ test.describe('FileUploader', () => {
4343
}) => {
4444
await snapshotStory(page, {
4545
component: 'FileUploader',
46-
id:
47-
'components-fileuploader--drag-and-drop-upload-container-example-application',
46+
id: 'components-fileuploader--drag-and-drop-upload-container-example-application',
4847
theme,
4948
});
5049
});

0 commit comments

Comments
 (0)