AcademiaTemple / website

Página web de la Academia Temple
https://academiatemple.netlify.app/
BSD Zero Clause License
16 stars 12 forks source link

Corregir los warnings que se presentan al correr el proyecto #74

Closed israteneda closed 3 years ago

israteneda commented 3 years ago

Cuando nos descargamos el proyecto y lo corremos con el comando: nmp start o gatsby develop Se presentan los siguientes warnings:

warn ESLintError:
I:\Code\website\src\components\calendario\CalendarioCursos.jsx
   19:6   warning  React Hook useEffect has a missing dependency: 'obtenerClasesPorFecha'. Either include it or remove the dependency array  
                   react-hooks/exhaustive-deps
   46:5   warning  Visible, non-interactive elements with click handlers must have at least one keyboard listener
                   jsx-a11y/click-events-have-key-events
   46:5   warning  Static HTML elements with event handlers require a role
                   jsx-a11y/no-static-element-interactions
   63:17  warning  Visible, non-interactive elements with click handlers must have at least one keyboard listener
                   jsx-a11y/click-events-have-key-events
   63:17  warning  Static HTML elements with event handlers require a role
                   jsx-a11y/no-static-element-interactions
   83:17  warning  Visible, non-interactive elements with click handlers must have at least one keyboard listener
                   jsx-a11y/click-events-have-key-events
   83:17  warning  Static HTML elements with event handlers require a role
warn ESLintError:
I:\Code\website\src\components\docentes\card\card_teacher.jsx
   3:8   warning  'Img' is defined but never used                                                                            no-unused-vars  
  11:11  warning  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images
jsx-a11y/alt-text

✖ 2 problems (0 errors, 2 warnings)
warn ESLintError:
I:\Code\website\src\components\episodio\acordeon_episodios.jsx
  1:17  warning  'useState' is defined but never used   no-unused-vars
  3:10  warning  'episidios' is defined but never used  no-unused-vars

✖ 2 problems (0 errors, 2 warnings)

warn ESLintError:
I:\Code\website\src\components\episodio\card\card_episodio.jsx
   8:18  warning  Expected '===' and instead saw '=='                                                             eqeqeq
  13:9   warning  Visible, non-interactive elements with click handlers must have at least one keyboard listener
jsx-a11y/click-events-have-key-events
  13:9   warning  Static HTML elements with event handlers require a role
jsx-a11y/no-static-element-interactions

warn ESLintError:
I:\Code\website\src\components\footer\footer.jsx
   1:17  warning  'useEffect' is defined but never used
                  no-unused-vars
  26:17  warning  Using target="_blank" without rel="noreferrer" is a security risk: see
https://html.spec.whatwg.org/multipage/links.html#link-type-noopener  react/jsx-no-target-blank
  33:18  warning  Using target="_blank" without rel="noreferrer" is a security risk: see
https://html.spec.whatwg.org/multipage/links.html#link-type-noopener  react/jsx-no-target-blank
  39:17  warning  Using target="_blank" without rel="noreferrer" is a security risk: see
https://html.spec.whatwg.org/multipage/links.html#link-type-noopener  react/jsx-no-target-blank
warn ESLintError:
I:\Code\website\src\components\parrafo_teacher\parrafo_teacher.jsx
  15:15  warning  The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href     
value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles.     
Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md  jsx-a11y/anchor-is-valid
  15:15  warning  Visible, non-interactive elements with click handlers must have at least one keyboard listener

                                                                                                 jsx-a11y/click-events-have-key-events       
  15:15  warning  Static HTML elements with event handlers require a role

                                                                                                 jsx-a11y/no-static-element-interactions     
warn ESLintError:
I:\Code\website\src\components\tarjeta_teacher\tarjeta_teacher.jsx
   1:27  warning  'useEffect' is defined but never used                                                                      no-unused-vars  
   4:7   warning  'api' is assigned a value but never used                                                                   no-unused-vars  
   8:16  warning  'estPais' is assigned a value but never used                                                               no-unused-vars  
  25:11  warning  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images
jsx-a11y/alt-text

✖ 4 problems (0 errors, 4 warnings)
warn ESLintError:
I:\Code\website\src\pages\course-player.js
  22:25  warning  <iframe> elements must have a unique title property  jsx-a11y/iframe-has-title

✖ 1 problem (0 errors, 1 warning)

warn ESLintError:
I:\Code\website\src\pages\index.js
  27:15  warning  Expected '===' and instead saw '=='

                                                                                                 eqeqeq
  52:9   warning  The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href     
value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles.     
Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md  jsx-a11y/anchor-is-valid
  52:9   warning  Visible, non-interactive elements with click handlers must have at least one keyboard listener
warn ESLintError:
I:\Code\website\src\pages\teacher_detail.js
  5:8  warning  'EncabezadoTeacher' is defined but never used  no-unused-vars
  8:8  warning  'teacher' is defined but never used            no-unused-vars

✖ 2 problems (0 errors, 2 warnings)
edavot commented 3 years ago

Me encargo de revisar esos warnings

israteneda commented 3 years ago

Genial @edavot ya te lo asigno. Porfa pidele a @Gricardov el spaceId y el access token de Contentful que deben ir en un archivo llamado .env.development para que puedas correr la app.