Skip to content

Commit 0d0b52b

Browse files
committed
wip
1 parent 5c5a035 commit 0d0b52b

File tree

128 files changed

+11604
-294
lines changed

Some content is hidden

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

128 files changed

+11604
-294
lines changed

.eslintrc

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
"plugin:react/jsx-runtime",
88
"plugin:prettier/recommended",
99
"plugin:no-unsanitized/DOM",
10-
"plugin:@vitest/legacy-recommended"
10+
"plugin:@vitest/legacy-recommended",
1111
],
1212
"parserOptions": {
1313
"ecmaVersion": "latest",
1414
"sourceType": "module",
1515
"ecmaFeatures": {
16-
"jsx": true
17-
}
16+
"jsx": true,
17+
},
1818
},
1919
"plugins": ["unicorn", "react-hooks", "no-unsanitized", "header", "import", "simple-import-sort", "@vitest"],
2020
"rules": {
@@ -29,22 +29,22 @@
2929
"react/no-unstable-nested-components": [
3030
"error",
3131
{
32-
"allowAsProps": true
33-
}
32+
"allowAsProps": true,
33+
},
3434
],
3535
"react/forbid-component-props": [
3636
"warn",
3737
{
38-
"forbid": ["className", "id"]
39-
}
38+
"forbid": ["className", "id"],
39+
},
4040
],
4141
"react/jsx-boolean-value": ["error", "always"],
4242
"@typescript-eslint/naming-convention": [
4343
"error",
4444
{
4545
"selector": "typeLike",
46-
"format": ["PascalCase"]
47-
}
46+
"format": ["PascalCase"],
47+
},
4848
],
4949
"react-hooks/rules-of-hooks": "error",
5050
"react-hooks/exhaustive-deps": ["error"],
@@ -57,7 +57,7 @@
5757
"header/header": [
5858
"error",
5959
"line",
60-
[" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.", " SPDX-License-Identifier: Apache-2.0"]
60+
[" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.", " SPDX-License-Identifier: Apache-2.0"],
6161
],
6262
"no-restricted-imports": [
6363
"error",
@@ -66,44 +66,44 @@
6666
{
6767
"name": "react",
6868
"importNames": ["default"],
69-
"message": "Prefer named imports."
69+
"message": "Prefer named imports.",
7070
},
7171
{
7272
"name": "@cloudscape-design/components",
73-
"message": "Prefer subpath imports."
74-
}
75-
]
76-
}
73+
"message": "Prefer subpath imports.",
74+
},
75+
],
76+
},
7777
],
7878
"import/no-useless-path-segments": [
7979
"warn",
8080
{
81-
"noUselessIndex": true
82-
}
81+
"noUselessIndex": true,
82+
},
8383
],
8484
"simple-import-sort/imports": "warn",
85-
"@vitest/no-focused-tests": "error"
85+
"@vitest/no-focused-tests": "error",
8686
},
8787
"settings": {
8888
"react": {
89-
"version": "detect"
90-
}
89+
"version": "detect",
90+
},
9191
},
9292
"env": {
9393
"browser": true,
94-
"es6": true
94+
"es6": true,
9595
},
9696
"overrides": [
9797
{
9898
"files": ["**/__integ__/**", "./test/**"],
9999
"rules": {
100100
// useBrowser is not a React hook
101101
"react-hooks/rules-of-hooks": "off",
102-
"react-hooks/exhaustive-deps": "off"
102+
"react-hooks/exhaustive-deps": "off",
103103
},
104104
"env": {
105-
"jest": true
106-
}
105+
"jest": true,
106+
},
107107
},
108108
{
109109
"files": ["src/**", "pages/**", "test/**", "scripts/**"],
@@ -121,13 +121,11 @@
121121
// Anything not matched in another group.
122122
["^"],
123123
// Styles come last.
124-
[
125-
"^.+\\.?(css)$","^.+\\.?(css.js)$", "^.+\\.?(scss)$", "^.+\\.?(selectors.js)$"
126-
]
127-
]
128-
}
129-
]
130-
}
131-
}
132-
]
124+
["^.+\\.?(css)$", "^.+\\.?(css.js)$", "^.+\\.?(scss)$", "^.+\\.?(selectors.js)$"],
125+
],
126+
},
127+
],
128+
},
129+
},
130+
],
133131
}

0 commit comments

Comments
 (0)