kabisa/kudos-frontend

View on GitHub
src/modules/manage-team/sections/kudometer/KudometerSection.tsx

Summary

Maintainability
A
1 hr
Test Coverage
C
78%

Function render has 95 lines of code (exceeds 80 allowed). Consider refactoring.
Open

  render() {
    return (
      <ApolloConsumer>
        {(client) => (
          <div className="form-container">
Severity: Major
Found in src/modules/manage-team/sections/kudometer/KudometerSection.tsx - About 1 hr to fix

    Missing return type on function.
    Open

      deleteKudometer(id: string) {

    For more information visit Source: http://eslint.org/docs/rules/

    An empty interface is equivalent to {}.
    Open

    export interface Props {

    For more information visit Source: http://eslint.org/docs/rules/

    Missing return type on function.
    Open

      createKudometer(mutate: any) {

    For more information visit Source: http://eslint.org/docs/rules/

    Missing return type on function.
    Open

      handleViewGoalButtonClick(kudometer: Kudometer) {

    For more information visit Source: http://eslint.org/docs/rules/

    Argument 'mutate' should be typed with a non-any type.
    Open

      createKudometer(mutate: any) {

    For more information visit Source: http://eslint.org/docs/rules/

    Missing return type on function.
    Open

      render() {

    For more information visit Source: http://eslint.org/docs/rules/

    Missing return type on function.
    Open

      cancelEdit() {

    For more information visit Source: http://eslint.org/docs/rules/

    Missing return type on function.
    Open

      saveKudosMeter(client: ApolloClient<any>) {

    For more information visit Source: http://eslint.org/docs/rules/

    Missing return type on function.
    Open

      edit(kudosMeter: Kudometer) {

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status