#84 Compilation warning while building the frontend
Closed 3 years ago by lbrabec. Opened 3 years ago by frantisekz.

During frontend build through Dockerfile, there are some warnings, it's probably better not to have any warnings, it doesn't seem like anything critical though.

Compiled with warnings.

./src/components/Timeline.js
  Line 15:5:  Useless constructor  no-useless-constructor

./src/components/ModalOptionsLayout.js
  Line 21:15:  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

./src/utils/index.js
  Line 3:10:   'Parser' is defined but never used  no-unused-vars
  Line 337:3:  Expected a default case             default-case

./src/components/Help.js
  Line 420:27:  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
  Line 428:27:  The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid 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

./src/components/EntryForm.js
  Line 4:8:  'logo' is defined but never used  no-unused-vars

./src/utils/searchparser.js
  Line 7:2:     'use strict' is unnecessary inside of modules                      strict
  Line 73:17:   Unexpected control character(s) in regular expression: \x00, \x0f  no-control-regex
  Line 74:17:   Unexpected control character(s) in regular expression: \x10, \x1f  no-control-regex
  Line 87:17:   Unexpected control character(s) in regular expression: \x00, \x0f  no-control-regex
  Line 88:17:   Unexpected control character(s) in regular expression: \x10, \x1f  no-control-regex
  Line 167:14:  Unnecessary escape character: \/                                   no-useless-escape
  Line 171:14:  Unnecessary escape character: \/                                   no-useless-escape
  Line 211:13:  'location' is defined but never used                               no-unused-vars
  Line 215:13:  'expected' is defined but never used                               no-unused-vars
  Line 225:13:  'error' is defined but never used                                  no-unused-vars

./src/components/Masthead.js
  Line 87:21:  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

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

Metadata Update from @lbrabec:
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata