1
0
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:
Jari Kolehmainen 2020-06-26 12:05:41 +03:00 committed by GitHub
parent e468105143
commit c91f608346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 86 additions and 82 deletions

View File

@ -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]
},
}

View File

@ -28,6 +28,7 @@ integration-win:
lint:
yarn lint
yarn lint-dashboard
test-app:
yarn test

View File

@ -173,7 +173,7 @@ export class Pod extends WorkloadKubeObject {
};
configMap: {
name: string;
}
};
secret: {
secretName: string;
defaultMode: number;

View File

@ -81,7 +81,7 @@ export class Workloads extends React.Component<Props> {
})
}
return routes;
};
}
render() {
const tabRoutes = Workloads.tabRoutes;

View File

@ -44,7 +44,7 @@ class App extends React.Component {
// render app
render(<App/>, App.rootElem);
};
}
render() {
const homeUrl = (isAllowedResource(["events", "nodes", "pods"])) ? clusterURL() : workloadsURL();