File tree 13 files changed +354
-316
lines changed
13 files changed +354
-316
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import eslint from '@eslint/js' ;
2
+ import tseslint from 'typescript-eslint' ;
3
+ import importPlugin from 'eslint-plugin-import' ;
4
+
5
+ export default tseslint . config ( [
6
+ {
7
+ ignores : [
8
+ "**/*.pb.ts" ,
9
+ "**/*.js" ,
10
+ "**/*.mjs"
11
+ ] ,
12
+ } ,
13
+ {
14
+ extends : [
15
+ eslint . configs . recommended ,
16
+ importPlugin . flatConfigs . errors ,
17
+ importPlugin . flatConfigs . warnings ,
18
+ tseslint . configs . recommended ,
19
+ importPlugin . flatConfigs . typescript ,
20
+ ] ,
21
+ rules : {
22
+ "import/default" : 0 ,
23
+ "import/no-named-as-default-member" : 0 ,
24
+ "import/named" : 2 ,
25
+ "import/order" : [
26
+ 2 ,
27
+ {
28
+ alphabetize : {
29
+ order : "asc" ,
30
+ caseInsensitive : true ,
31
+ } ,
32
+ }
33
+ ] ,
34
+ "@typescript-eslint/explicit-module-boundary-types" : 0 ,
35
+ "@typescript-eslint/no-explicit-any" : 0 ,
36
+ "@typescript-eslint/ban-ts-comment" : 0 ,
37
+ "import/no-named-as-default" : 0 ,
38
+ "@typescript-eslint/switch-exhaustiveness-check" : [ "error" ,
39
+ {
40
+ "considerDefaultExhaustiveForUnions" : true
41
+ } ] ,
42
+ "import/no-unresolved" : 0 ,
43
+ } ,
44
+ languageOptions : {
45
+ ecmaVersion : 5 ,
46
+ sourceType : "script" ,
47
+ parserOptions : {
48
+ project : "./tsconfig.json" ,
49
+ } ,
50
+ } ,
51
+ }
52
+ ] ) ;
Original file line number Diff line number Diff line change 84
84
},
85
85
"devDependencies" : {
86
86
"@babel/core" : " ^7.26.0" ,
87
+ "@eslint/js" : " 9.17.0" ,
87
88
"@parcel/babel-preset-env" : " ^2.13.3" ,
88
89
"@parcel/config-default" : " ^2.8.3" ,
89
90
"@parcel/core" : " ^2.13.3" ,
100
101
"@types/react" : " ^18.0.0" ,
101
102
"@types/react-dom" : " ^18.0.0" ,
102
103
"@types/react-is" : " ^18" ,
103
- "@typescript-eslint/eslint-plugin" : " ^6.6.0" ,
104
- "@typescript-eslint/parser" : " ^6.6.0" ,
105
104
"babel-jest" : " ^29.7.0" ,
106
105
"babel-plugin-styled-components" : " ^2.1.4" ,
107
106
"buffer" : " ^6.0.3" ,
108
- "eslint" : " 8.57.1 " ,
107
+ "eslint" : " 9.17.0 " ,
109
108
"eslint-plugin-import" : " ^2.31.0" ,
110
109
"jest" : " ^29.7.0" ,
111
110
"jest-environment-jsdom" : " ^29.7.0" ,
119
118
"react-test-renderer" : " ^18.0.0" ,
120
119
"ts-jest" : " ^29.2.5" ,
121
120
"typescript" : " ^5.2.2" ,
121
+ "typescript-eslint" : " ^8.19.1" ,
122
122
"yarn-audit-fix" : " ^10.1.1"
123
123
},
124
124
"alias" : {
Original file line number Diff line number Diff line change @@ -21,14 +21,12 @@ type Props = {
21
21
loading : boolean ;
22
22
} ;
23
23
24
- const defaultInitialState = ( ) => ( {
25
- name : "" ,
26
- namespace : "" ,
27
- source : "" ,
28
- path : "" ,
29
- } ) ;
30
-
31
- type FormState = ReturnType < typeof defaultInitialState > ;
24
+ type FormState = {
25
+ name : "" ;
26
+ namespace : "" ;
27
+ source : "" ;
28
+ path : "" ;
29
+ } ;
32
30
33
31
function AddKustomizationForm ( {
34
32
className,
Original file line number Diff line number Diff line change 1
- // eslint-disable-next-line
2
1
import { CircularProgress } from "@mui/material" ;
3
2
import MaterialButton , { type ButtonProps } from "@mui/material/Button" ;
4
3
import * as React from "react" ;
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ import WarningIcon from "@mui/icons-material/Warning";
37
37
import * as React from "react" ;
38
38
import styled from "styled-components" ;
39
39
import images from "../lib/images" ;
40
- // eslint-disable-next-line
41
40
import { colors , fontSizes , spacing } from "../typedefs/styled" ;
42
41
import Flex from "./Flex" ;
43
42
import ApplicationsIcon from "./NavIcons/ApplicationsIcon" ;
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import styled from "styled-components";
6
6
import { formatURL } from "../lib/nav" ;
7
7
import { PageRoute , V2Routes } from "../lib/types" ;
8
8
import { Fade } from "../lib/utils" ;
9
- // eslint-disable-next-line
10
9
import { colors } from "../typedefs/styled" ;
11
10
12
11
import Flex from "./Flex" ;
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ import Spacer from "./Spacer";
14
14
// https://github.com/parcel-bundler/parcel/issues/8792
15
15
// https://github.com/weaveworks/weave-gitops/issues/3672
16
16
// Theory: this is tricking parcel into correctly importing d3. :shrug:
17
+ // TODO: Investigate if this can be removed safely via a component upgrade path
18
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
17
19
d3 ;
18
20
19
21
interface Props {
Original file line number Diff line number Diff line change 1
1
import styled from "styled-components" ;
2
- // eslint-disable-next-line
3
2
import { spacing } from "../typedefs/styled" ;
4
3
5
4
type Spacing = keyof typeof spacing ;
Original file line number Diff line number Diff line change 1
1
import styled from "styled-components" ;
2
- // eslint-disable-next-line
3
2
import { colors , fontSizes } from "../typedefs/styled" ;
4
3
5
4
export interface TextProps {
Original file line number Diff line number Diff line change 1
1
import { createGlobalStyle } from "styled-components" ;
2
2
// Typescript will handle type-checking/linting for this file
3
- /* eslint-disable */
4
3
// @ts -ignore
5
4
import ProximaNovaBold from "url:../fonts/ProximaNovaBold.otf" ;
6
5
// @ts -ignore
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ export class HelmRelease extends FluxObject {
262
262
super ( response ) ;
263
263
try {
264
264
this . inventory = response . inventory || [ ] ;
265
- } catch ( error ) {
265
+ } catch {
266
266
this . inventory = [ ] ;
267
267
}
268
268
}
You can’t perform that action at this time.
0 commit comments