Skip to content

[frontend] bump eslint-plugin-vue dependency #1578

@alxndrsn

Description

@alxndrsn

Per getodk/central-frontend#1411 (comment), updating the minor version with npm update eslint-plugin-vue introduces some new rules which may be useful.

New Rules

Current Failures

$ npm run lint

> odk-central-frontend@0.1.0 lint
> npm run eslint && npm run transifex:lint


> odk-central-frontend@0.1.0 eslint
> eslint --max-warnings 0 --cache --ext .js,.vue src/ bin/ test/ e2e-tests/ *.js


./odk/frontend/src/components/audit/list.vue
  16:46  warning  Attribute 'v-model:dateRange' must be hyphenated  vue/attribute-hyphenation

./odk/frontend/src/components/entity/list.vue
  19:55  warning  Attribute 'v-model:creatorId' must be hyphenated     vue/attribute-hyphenation
  19:86  warning  Attribute 'v-model:creationDate' must be hyphenated  vue/attribute-hyphenation

./odk/frontend/src/components/entity/table-view.vue
  53:21  warning  Prop "allSelected" should define at least its type  vue/require-prop-types

./odk/frontend/src/components/form-group.vue
  35:32  warning  Prop "modelValue" should define at least its type  vue/require-prop-types

./odk/frontend/src/components/geojson-map/dev-tools.vue
  61:17  warning  Prop "maxZoom" should define at least its type             vue/require-prop-types
  62:17  warning  Prop "cluster" should define at least its type             vue/require-prop-types
  63:25  warning  Prop "clusterDistance" should define at least its type     vue/require-prop-types
  64:28  warning  Prop "clusterMinDistance" should define at least its type  vue/require-prop-types
  65:23  warning  Prop "overlapRadius" should define at least its type       vue/require-prop-types
  66:21  warning  Prop "overlapHint" should define at least its type         vue/require-prop-types

./odk/frontend/src/components/radio-field.vue
  33:27  warning  Prop "modelValue" should define at least its type  vue/require-prop-types

./odk/frontend/src/components/submission/list.vue
  28:31  warning  Attribute 'v-model:submitterId' must be hyphenated     vue/attribute-hyphenation
  29:13  warning  Attribute 'v-model:submissionDate' must be hyphenated  vue/attribute-hyphenation
  30:13  warning  Attribute 'v-model:reviewState' must be hyphenated     vue/attribute-hyphenation

✖ 15 problems (0 errors, 15 warnings)
  0 errors and 6 warnings potentially fixable with the `--fix` option.

ESLint found too many warnings (maximum: 0).

Decide which of the new rules should be ignored, and if any are kept then either fix or ignore specific violations.

Metadata

Metadata

Assignees

Labels

dxDeveloper workflow, automated checksfrontendRequires a change to the UImaintenanceDependencies, recurring maintenance

Type

No type

Projects

Status

🕒 backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions