S
S
sergeyviktorovich2021-12-27 12:10:09
typescript
sergeyviktorovich, 2021-12-27 12:10:09

Why does TS swear at the semicolon and how to correct it correctly?

ERROR in src/components/CompositionComponent.vue:182:60
semi: Extra semicolon.
    180 |   computed: {
    181 |     unitsItems() {
  > 182 |       return this.$store.getters["unitsModule/unitsNearby"];
        |                                                            ^
    183 |     },
    184 |   },
    185 | })

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-12-27
@Aetae

Extra semicolon.
Extra semicolon.
How to be? Reconfigure eslint's semi rule the other way round so that semicolons are required.
Anyone who does not write semicolons is digging a hole for himself and reduces readability.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question