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-var-requires": "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]
|
||||
},
|
||||
}
|
||||
|
||||
1
Makefile
1
Makefile
@ -28,6 +28,7 @@ integration-win:
|
||||
|
||||
lint:
|
||||
yarn lint
|
||||
yarn lint-dashboard
|
||||
|
||||
test-app:
|
||||
yarn test
|
||||
|
||||
@ -173,7 +173,7 @@ export class Pod extends WorkloadKubeObject {
|
||||
};
|
||||
configMap: {
|
||||
name: string;
|
||||
}
|
||||
};
|
||||
secret: {
|
||||
secretName: string;
|
||||
defaultMode: number;
|
||||
|
||||
@ -81,7 +81,7 @@ export class Workloads extends React.Component<Props> {
|
||||
})
|
||||
}
|
||||
return routes;
|
||||
};
|
||||
}
|
||||
|
||||
render() {
|
||||
const tabRoutes = Workloads.tabRoutes;
|
||||
|
||||
@ -44,7 +44,7 @@ class App extends React.Component {
|
||||
|
||||
// render app
|
||||
render(<App/>, App.rootElem);
|
||||
};
|
||||
}
|
||||
|
||||
render() {
|
||||
const homeUrl = (isAllowedResource(["events", "nodes", "pods"])) ? clusterURL() : workloadsURL();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user