Skip to content

Commit bf0be3d

Browse files
committed
toil: enforce type imports in eslint
1 parent 2386942 commit bf0be3d

File tree

136 files changed

+239
-183
lines changed

Some content is hidden

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

136 files changed

+239
-183
lines changed

front/assets/.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ module.exports = {
118118
beforeClosing: "never",
119119
},
120120
],
121+
"comma-dangle": "off",
121122
"@typescript-eslint/comma-dangle": [
122123
"error",
123124
{
@@ -131,6 +132,7 @@ module.exports = {
131132
tuples: "always-multiline"
132133
}
133134
],
135+
"@typescript-eslint/consistent-type-imports": ["warn", { prefer: "type-imports" }],
134136
"@typescript-eslint/no-misused-promises": [
135137
"error",
136138
{

front/assets/js/agents/components/activity_item.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Fragment, h, VNode } from "preact";
1+
import type { h, VNode } from "preact";
2+
import { Fragment } from "preact";
23
import { useContext, useState } from "preact/hooks";
34
import * as stores from "../stores";
45
import * as toolbox from "js/toolbox";

front/assets/js/agents/components/agents.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { h, Fragment } from "preact";
1+
import type { h } from "preact";
2+
import { Fragment } from "preact";
23
import { useContext } from "preact/hooks";
34
import * as stores from "../stores";
45
import { useNavigate } from "react-router-dom";

front/assets/js/agents/components/code.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { h } from "preact";
1+
import type { h } from "preact";
22
interface CodeProps extends h.JSX.HTMLAttributes {
33
content: string;
44
}

front/assets/js/agents/components/git_providers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { h } from "preact";
1+
import type { h } from "preact";
22
import * as components from ".";
33
import { useState } from "preact/compat";
44
import styled from "styled-components";

front/assets/js/agents/components/instructions/aws.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import * as stores from "../../stores";
22
import * as components from "../";
33
import { useContext, useState } from "preact/hooks";
4-
import { Fragment, h, VNode } from "preact";
4+
import type { h, VNode } from "preact";
5+
import { Fragment } from "preact";
56
import styled from "styled-components";
67

78
export const name = `AWS`;

front/assets/js/agents/components/instructions/kubernetes.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Fragment, VNode } from "preact";
1+
import type { VNode } from "preact";
2+
import { Fragment } from "preact";
23
import * as stores from "../../stores";
34
import * as components from "../";
45
import { useContext } from "preact/hooks";

front/assets/js/agents/components/instructions/linux.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Fragment, VNode } from "preact";
1+
import type { VNode } from "preact";
2+
import { Fragment } from "preact";
23
import * as stores from "../../stores";
34
import * as components from "../";
45
import { useContext } from "preact/hooks";

front/assets/js/agents/components/instructions/macos.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Fragment, h, VNode } from "preact";
1+
import type { h, VNode } from "preact";
2+
import { Fragment } from "preact";
23
import * as stores from "../../stores";
34
import * as components from "../";
45
import { useContext, useState } from "preact/hooks";

front/assets/js/agents/components/instructions/rhel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Fragment, VNode } from "preact";
1+
import type { VNode } from "preact";
2+
import { Fragment } from "preact";
23
import * as stores from "../../stores";
34
import * as components from "../";
45
import { useContext } from "preact/hooks";

0 commit comments

Comments
 (0)