Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix erreurs de linting #64

Open
bonjourmauko opened this issue Oct 10, 2023 · 0 comments
Open

Fix erreurs de linting #64

bonjourmauko opened this issue Oct 10, 2023 · 0 comments
Labels
refactor Evolutions du code sans impact sur le produit

Comments

@bonjourmauko
Copy link
Contributor

bonjourmauko commented Oct 10, 2023

Voici la liste actuelle (npm run lint):

> [email protected] lint
> eslint . --ext .js,.ts,.vue,.json --fix --ignore-path .gitignore


  87:5  warning  v-on event '@update:modelValue' must be hyphenated  vue/v-on-event-hyphenation

   1:1  error    Component name "Card" should always be multi-word    vue/multi-word-component-names
   5:3  warning  Prop "title" should define at least its type         vue/require-prop-types
   6:3  warning  Prop "description" should define at least its type   vue/require-prop-types
   7:3  warning  Prop "img" should define at least its type           vue/require-prop-types
   8:3  warning  Prop "link" should define at least its type          vue/require-prop-types
   9:3  warning  Prop "altImg" should define at least its type        vue/require-prop-types
  10:3  warning  Prop "type" should define at least its type          vue/require-prop-types
  11:3  warning  Prop "externalLink" should define at least its type  vue/require-prop-types

  4:28  warning  Prop "chartData" should define at least its type  vue/require-prop-types

  2:28  warning  Prop "buttons" should define at least its type  vue/require-prop-types

   4:7  error    Elements in iteration expect to have 'v-bind:key' directives  vue/require-v-for-key
  17:7  error    Elements in iteration expect to have 'v-bind:key' directives  vue/require-v-for-key
  42:5  warning  Prop 'selectedThemeName' requires default value to be set     vue/require-default-prop

  8:28  warning  Prop "topics" should define at least its type  vue/require-prop-types

  70:28  warning  Prop "dataurl" should define at least its type  vue/require-prop-types

  1:1  error  Component name "Navigation" should always be multi-word  vue/multi-word-component-names

   1:1  error    Component name "Tile" should always be multi-word    vue/multi-word-component-names
   7:3  warning  Prop "title" should define at least its type         vue/require-prop-types
   8:3  warning  Prop "description" should define at least its type   vue/require-prop-types
   9:3  warning  Prop "img" should define at least its type           vue/require-prop-types
  10:3  warning  Prop "link" should define at least its type          vue/require-prop-types
  11:3  warning  Prop "type" should define at least its type          vue/require-prop-types
  12:3  warning  Prop "externalLink" should define at least its type  vue/require-prop-types
  13:3  warning  Prop "isMarkdown" should define at least its type    vue/require-prop-types
  14:3  warning  Prop "notice" should define at least its type        vue/require-prop-types

   1:1   error    Component name "Tooltip" should always be multi-word  vue/multi-word-component-names
   2:7   error    'props' is assigned a value but never used            no-unused-vars
   2:28  warning  Prop "title" should define at least its type          vue/require-prop-types
   2:37  warning  Prop "name" should define at least its type           vue/require-prop-types
   2:45  warning  Prop "show" should define at least its type           vue/require-prop-types
   2:53  warning  Prop "text" should define at least its type           vue/require-prop-types
  12:19  error    Unexpected mutation of "show" prop                    vue/no-mutating-props
  13:18  error    Unexpected mutation of "show" prop                    vue/no-mutating-props
  14:23  error    Unexpected mutation of "show" prop                    vue/no-mutating-props
  15:14  error    Unexpected mutation of "show" prop                    vue/no-mutating-props
  24:10  warning  'v-html' directive can lead to XSS attack             vue/no-v-html

  14:26  error  Expected the Promise rejection reason to be an Error  prefer-promise-reject-errors

  27:9   error  Unexpected nullable object value in conditional. An explicit null check is required  @typescript-eslint/strict-boolean-expressions
  33:11  error  Unexpected nullable object value in conditional. An explicit null check is required  @typescript-eslint/strict-boolean-expressions

   37:15  error  Expected '!==' and instead saw '!='     eqeqeq
  112:3   error  Duplicate name 'createBasicAuthHeader'  no-dupe-class-members

   92:13  error  Identifier 'entity_id' is not in camel case  camelcase
   93:34  error  Identifier 'entity_id' is not in camel case  camelcase
  103:14  error  Identifier 'entity_id' is not in camel case  camelcase
  104:34  error  Identifier 'entity_id' is not in camel case  camelcase
  151:16  error  Identifier 'entity_id' is not in camel case  camelcase
  153:24  error  Identifier 'entity_id' is not in camel case  camelcase

  14:36  error  Identifier 'org_id' is not in camel case  camelcase
  16:48  error  Identifier 'org_id' is not in camel case  camelcase

  13:24  error  Identifier 'dataset_id' is not in camel case  camelcase
  14:39  error  Identifier 'dataset_id' is not in camel case  camelcase

  12:19  error  Identifier 'dataset_id' is not in camel case  camelcase
  13:43  error  Identifier 'dataset_id' is not in camel case  camelcase

   33:33  error  Identifier 'org_id' is not in camel case      camelcase
   54:23  error  Identifier 'org_id' is not in camel case      camelcase
   56:22  error  Identifier 'org_id' is not in camel case      camelcase
   57:24  error  Identifier 'org_id' is not in camel case      camelcase
   57:51  error  Expected '===' and instead saw '=='           eqeqeq
   67:30  error  Identifier 'org_id' is not in camel case      camelcase
   85:17  error  Identifier 'org_id' is not in camel case      camelcase
   87:41  error  Identifier 'org_id' is not in camel case      camelcase
   89:17  error  Identifier 'org_id' is not in camel case      camelcase
   89:42  error  Identifier 'org_id' is not in camel case      camelcase
   97:9   error  Identifier 'dataset_id' is not in camel case  camelcase
  104:25  error  Identifier 'dataset_id' is not in camel case  camelcase
  104:50  error  Identifier 'dataset_id' is not in camel case  camelcase
  125:16  error  Identifier 'dataset_id' is not in camel case  camelcase

  18:30  error  Identifier 'dataset_id' is not in camel case  camelcase
  19:22  error  Identifier 'dataset_id' is not in camel case  camelcase
  20:24  error  Identifier 'dataset_id' is not in camel case  camelcase
  20:55  error  Expected '===' and instead saw '=='           eqeqeq
  28:37  error  Identifier 'dataset_id' is not in camel case  camelcase
  41:20  error  Identifier 'dataset_id' is not in camel case  camelcase
  43:17  error  Identifier 'dataset_id' is not in camel case  camelcase
  43:46  error  Identifier 'dataset_id' is not in camel case  camelcase
  51:40  error  Identifier 'dataset_id' is not in camel case  camelcase

   46:43  error  Expected '===' and instead saw '=='        eqeqeq
   71:24  error  Identifier 'org_ids' is not in camel case  camelcase
   72:18  error  Identifier 'org_id' is not in camel case   camelcase
   72:28  error  Identifier 'org_ids' is not in camel case  camelcase
   79:41  error  Identifier 'org_id' is not in camel case   camelcase
   91:53  error  Expected '===' and instead saw '=='        eqeqeq
  105:9   error  Identifier 'org_id' is not in camel case   camelcase
  109:31  error  Identifier 'org_id' is not in camel case   camelcase
  109:52  error  Identifier 'org_id' is not in camel case   camelcase
  118:16  error  Identifier 'org_id' is not in camel case   camelcase

  18:25  error  Identifier 'dataset_id' is not in camel case  camelcase
  19:24  error  Identifier 'dataset_id' is not in camel case  camelcase
  28:32  error  Identifier 'dataset_id' is not in camel case  camelcase
  41:15  error  Identifier 'dataset_id' is not in camel case  camelcase
  43:17  error  Identifier 'dataset_id' is not in camel case  camelcase

  37:13  warning  'v-html' directive can lead to XSS attack           vue/no-v-html
  44:7   warning  v-on event '@update:modelValue' must be hyphenated  vue/v-on-event-hyphenation

   3:20  error    'ref' is defined but never used             no-unused-vars
  10:28  warning  Prop "url" should define at least its type  vue/require-prop-types
  26:10  warning  'v-html' directive can lead to XSS attack   vue/no-v-html

  73:12  warning  'v-html' directive can lead to XSS attack                     vue/no-v-html
  87:11  error    Elements in iteration expect to have 'v-bind:key' directives  vue/require-v-for-key

  512:13  error    Elements in iteration expect to have 'v-bind:key' directives  vue/require-v-for-key
  608:12  warning  'v-html' directive can lead to XSS attack                     vue/no-v-html
  610:42  warning  'v-html' directive can lead to XSS attack                     vue/no-v-html
  626:12  warning  'v-html' directive can lead to XSS attack                     vue/no-v-html
  628:12  warning  'v-html' directive can lead to XSS attack                     vue/no-v-html
  645:13  error    Elements in iteration expect to have 'v-bind:key' directives  vue/require-v-for-key

  35:7  error  Elements in iteration expect to have 'v-bind:key' directives  vue/require-v-for-key

  130:14  warning  'v-html' directive can lead to XSS attack                     vue/no-v-html
  167:11  error    Elements in iteration expect to have 'v-bind:key' directives  vue/require-v-for-key
  189:11  error    Elements in iteration expect to have 'v-bind:key' directives  vue/require-v-for-key
  198:19  error    Elements in iteration expect to have 'v-bind:key' directives  vue/require-v-for-key

  77:11  warning  v-on event '@update:modelValue' must be hyphenated            vue/v-on-event-hyphenation
  84:11  error    Elements in iteration expect to have 'v-bind:key' directives  vue/require-v-for-key

  56:10  warning  'v-html' directive can lead to XSS attack                     vue/no-v-html
  71:13  warning  v-on event '@update:modelValue' must be hyphenated            vue/v-on-event-hyphenation
  82:7   error    Elements in iteration expect to have 'v-bind:key' directives  vue/require-v-for-key

  30:7  error  Elements in iteration expect to have 'v-bind:key' directives  vue/require-v-for-key

✖ 116 problems (77 errors, 39 warnings)

@bonjourmauko bonjourmauko added this to the Continuous deployment milestone Oct 10, 2023
@bonjourmauko bonjourmauko moved this to Pool of options in Ecosphères x Multi Oct 26, 2023
@bonjourmauko bonjourmauko modified the milestones: V1 : Déploiement « version bêta », V2 : Product / Market fit Oct 26, 2023
@bonjourmauko bonjourmauko moved this to Pool of options in Ecosphères x Multi Oct 26, 2023
@bonjourmauko bonjourmauko modified the milestones: V2 : Product / Market fit, V3 : Accelération Oct 26, 2023
@bonjourmauko bonjourmauko added the refactor Evolutions du code sans impact sur le produit label Nov 23, 2023
@bonjourmauko bonjourmauko changed the title Fix linting issues refactor: fix linting issues Nov 23, 2023
@streino streino changed the title refactor: fix linting issues Fix linting issues Feb 22, 2024
@streino streino removed their assignment Feb 22, 2024
@streino streino changed the title Fix linting issues Fix erreurs de linting Feb 22, 2024
@streino streino removed this from the V3 : Accelération milestone Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Evolutions du code sans impact sur le produit
Projects
None yet
Development

No branches or pull requests

2 participants