mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Lint dashboard app automatically (#529)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
e468105143
commit
c91f608346
@ -69,6 +69,9 @@ module.exports = {
|
|||||||
"@typescript-eslint/no-empty-interface": "off",
|
"@typescript-eslint/no-empty-interface": "off",
|
||||||
"@typescript-eslint/no-var-requires": "off",
|
"@typescript-eslint/no-var-requires": "off",
|
||||||
"@typescript-eslint/ban-ts-ignore": "off",
|
"@typescript-eslint/ban-ts-ignore": "off",
|
||||||
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||||||
|
"@typescript-eslint/ban-types": "off",
|
||||||
|
"@typescript-eslint/no-empty-function": "off",
|
||||||
"indent": ["error", 2]
|
"indent": ["error", 2]
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
1
Makefile
1
Makefile
@ -28,6 +28,7 @@ integration-win:
|
|||||||
|
|
||||||
lint:
|
lint:
|
||||||
yarn lint
|
yarn lint
|
||||||
|
yarn lint-dashboard
|
||||||
|
|
||||||
test-app:
|
test-app:
|
||||||
yarn test
|
yarn test
|
||||||
|
|||||||
@ -173,7 +173,7 @@ export class Pod extends WorkloadKubeObject {
|
|||||||
};
|
};
|
||||||
configMap: {
|
configMap: {
|
||||||
name: string;
|
name: string;
|
||||||
}
|
};
|
||||||
secret: {
|
secret: {
|
||||||
secretName: string;
|
secretName: string;
|
||||||
defaultMode: number;
|
defaultMode: number;
|
||||||
|
|||||||
@ -81,7 +81,7 @@ export class Workloads extends React.Component<Props> {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
return routes;
|
return routes;
|
||||||
};
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const tabRoutes = Workloads.tabRoutes;
|
const tabRoutes = Workloads.tabRoutes;
|
||||||
|
|||||||
@ -44,7 +44,7 @@ class App extends React.Component {
|
|||||||
|
|
||||||
// render app
|
// render app
|
||||||
render(<App/>, App.rootElem);
|
render(<App/>, App.rootElem);
|
||||||
};
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const homeUrl = (isAllowedResource(["events", "nodes", "pods"])) ? clusterURL() : workloadsURL();
|
const homeUrl = (isAllowedResource(["events", "nodes", "pods"])) ? clusterURL() : workloadsURL();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user