Skip to content

Commit 7929a08

Browse files
committed
Merge branch 'main' into line_wrap
2 parents 323c76f + 2aa88d5 commit 7929a08

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2626
-2952
lines changed

.eslintrc

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"jsx": true
1616
}
1717
},
18-
"plugins": ["unicorn", "react-hooks", "no-unsanitized", "header", "import"],
18+
"plugins": ["unicorn", "react-hooks", "no-unsanitized", "header", "import", "simple-import-sort"],
1919
"rules": {
2020
"@typescript-eslint/no-unused-vars": "error",
2121
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
@@ -69,14 +69,13 @@
6969
]
7070
}
7171
],
72-
"sort-imports": ["error", { "ignoreDeclarationSort": true }],
73-
"import/order": ["error", { "alphabetize": { "order": "asc" } }],
7472
"import/no-useless-path-segments": [
7573
"warn",
7674
{
7775
"noUselessIndex": true
7876
}
79-
]
77+
],
78+
"simple-import-sort/imports": "error"
8079
},
8180
"settings": {
8281
"react": {
@@ -98,6 +97,30 @@
9897
"env": {
9998
"jest": true
10099
}
100+
},
101+
{
102+
"files": ["src/**", "pages/**", "test/**", "scripts/**"],
103+
"rules": {
104+
"simple-import-sort/imports": [
105+
"error",
106+
{
107+
"groups": [
108+
// External packages come first.
109+
["^react", "^(?!@cloudscape)@?\\w"],
110+
// Cloudscape packages.
111+
["^@cloudscape"],
112+
// Things that start with a letter (or digit or underscore), or `~` followed by a letter.
113+
["^~\\w"],
114+
// Anything not matched in another group.
115+
["^"],
116+
// Styles come last.
117+
[
118+
"^.+\\.?(css)$","^.+\\.?(css.js)$", "^.+\\.?(scss)$", "^.+\\.?(selectors.js)$"
119+
]
120+
]
121+
}
122+
]
123+
}
101124
}
102125
]
103126
}

.github/workflows/build-lint-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
push:
88
branches:
99
- main
10+
merge_group:
1011

1112
permissions:
1213
id-token: write
@@ -18,6 +19,7 @@ permissions:
1819
jobs:
1920
build:
2021
uses: cloudscape-design/actions/.github/workflows/build-lint-test.yml@main
22+
secrets: inherit
2123
with:
2224
artifact-path: dist
2325
artifact-name: dev-pages

.github/workflows/dry-run.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
pull_request:
77
branches:
88
- main
9+
merge_group:
910

1011
jobs:
1112
dry-run:

.github/workflows/lint-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- opened
77
- edited
88
- synchronize
9+
merge_group:
910

1011
jobs:
1112
dry-run:

.github/workflows/visual-regression.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
if: github.event.ref != 'refs/heads/main'
1919
steps:
2020
- uses: actions/checkout@v4
21-
- uses: actions/setup-node@v3
21+
- uses: actions/setup-node@v4
2222
with:
23-
node-version: 18
23+
node-version: 20
2424
cache: "npm"
2525
- name: "Download artifacts"
2626
# Turns out you can not use artifacts from a previous workflow run.
@@ -47,9 +47,9 @@ jobs:
4747
if: github.event.ref == 'refs/heads/main'
4848
steps:
4949
- uses: actions/checkout@v4
50-
- uses: actions/setup-node@v3
50+
- uses: actions/setup-node@v4
5151
with:
52-
node-version: 18
52+
node-version: 20
5353
cache: "npm"
5454
- run: npm install
5555
- run: npm run build

.stylelintrc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
"selector-pseudo-class-no-unknown": [true, { "ignorePseudoClasses": ["global"] }],
77
"selector-max-type": [0, { "ignore": ["compounded"] }],
88
"selector-max-universal": [0],
9-
"order/order": ["rules"]
9+
"order/order": ["rules"],
10+
"@cloudscape-design/license-headers": [
11+
true,
12+
{
13+
"header": "\n Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n SPDX-License-Identifier: Apache-2.0\n"
14+
}
15+
]
1016
},
11-
"plugins": ["stylelint-use-logical", "stylelint-order"]
17+
"plugins": ["stylelint-use-logical", "stylelint-order", "@cloudscape-design/build-tools/stylelint"]
1218
}

0 commit comments

Comments
 (0)