Skip to content

Commit 2ae8920

Browse files
hnn0003Copilot
andcommitted
Update lint configuration
Co-authored-by: Copilot <[email protected]>
1 parent 5da4f27 commit 2ae8920

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.eslintrc.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
"no-alert": "warn",
1717
"no-empty": [ "warn", { "allowEmptyCatch": true } ],
1818
"no-eval": "error",
19-
"@typescript-eslint/comma-dangle": [ "warn", "always-multiline" ],
20-
"@typescript-eslint/member-delimiter-style": [ "warn", { "singleline": { "requireLast": true } } ],
19+
"comma-dangle": [ "warn", "always-multiline" ],
20+
"quotes": "warn",
2121
"@typescript-eslint/no-confusing-void-expression": [ "warn", { "ignoreArrowShorthand": true } ],
22+
"@typescript-eslint/no-duplicate-type-constituents": "warn",
2223
"@typescript-eslint/no-empty-function": "off",
24+
"@typescript-eslint/no-empty-object-type": "off",
2325
"@typescript-eslint/no-misused-promises": [ "error", { "checksVoidReturn": false } ],
2426
"@typescript-eslint/no-non-null-assertion": "warn",
2527
"@typescript-eslint/no-redundant-type-constituents": "off",
@@ -30,8 +32,8 @@
3032
"@typescript-eslint/no-unsafe-enum-comparison": "off",
3133
"@typescript-eslint/no-unsafe-member-access": "off",
3234
"@typescript-eslint/no-unsafe-return": "off",
35+
"@typescript-eslint/no-unused-expressions": [ "error", { "allowShortCircuit": true, "allowTernary": true } ],
3336
"@typescript-eslint/no-unused-vars": [ "warn", { "argsIgnorePattern": "^_", "ignoreRestSiblings": true } ],
34-
"@typescript-eslint/quotes": "warn",
3537
"@typescript-eslint/return-await": "warn",
3638
"@typescript-eslint/require-await": "off",
3739
"@typescript-eslint/switch-exhaustiveness-check": "warn",

packages/saved-views-client/src/client/ApiUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function throwBadResponseCodeError(response: Response, errorMessage: strin
4444
try {
4545
const resp = (await response.json());
4646
if (!isErrorResponse(resp)) {
47-
throw 0;
47+
throw new Error();
4848
}
4949
error = resp.error;
5050
} catch {

packages/test-app-frontend/src/App/common/LoadingScreen.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { PageLayout } from "@itwin/itwinui-layouts-react";
66
import { PropsWithChildren, ReactElement } from "react";
77
import { LoadingIndicator } from "./LoadingIndicator";
88

9-
// eslint-disable-next-line @typescript-eslint/ban-types
109
export function LoadingScreen(props: PropsWithChildren<{}>): ReactElement {
1110
return (
1211
<PageLayout.Content>

0 commit comments

Comments
 (0)