Tracardi / tracardi-gui

Tracardi ReactJs Graphical User Interface
Other
19 stars 25 forks source link

Remove compilation warnings #194

Closed atompie closed 1 year ago

atompie commented 1 year ago
src/components/elements/charts/BarChart.js
  Line 33:8:  React Hook useEffect has a missing dependency: 'allowLoadingSpinner'. Either include it or remove the dependency array  react-hooks/exhaustive-deps

src/components/elements/charts/EventsTimeLine.js
  Line 196:8:  React Hook useEffect has missing dependencies: 'getDataSource' and 'loading'. Either include them or remove the dependency array  react-hooks/exhaustive-deps

src/components/elements/details/EventManagementDetails.js
  Line 2:8:  'Properties' is defined but never used  no-unused-vars

src/components/elements/details/EventSourceDetails.js
  Line 203:18:  'getRefreshRate' is defined but never used  no-unused-vars

src/components/elements/details/ImportDetails.js
  Line 70:38:  Unexpected string concatenation of literals  no-useless-concat

src/components/elements/forms/JsonFormComponents.js
  Line 290:16:  'formattedValue' is assigned a value but never used  no-unused-vars

src/components/elements/forms/ObjectFiltering.js
  Line 88:74:  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/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md  jsx-a11y/anchor-is-valid

src/components/elements/forms/ResourceForm.js
  Line 87:8:  React Hook useEffect has a missing dependency: 'init?.type'. Either include it or remove the dependency array. If 'setType' needs the current value of 'init.type', you can also switch to useReducer instead of useState and read 'init.type' in the reducer  react-hooks/exhaustive-deps

src/components/elements/forms/inputs/DotAccessor.js
  Line 91:8:  React Hook useCallback has missing dependencies: 'defaultPathValue', 'defaultSourceValue', and 'forceMode'. Either include them or remove the dependency array  react-hooks/exhaustive-deps

src/components/elements/lists/AutoLoadList.js
  Line 64:8:  React Hook useCallback has missing dependencies: 'lastQuery', 'requestParams', and 'rows'. Either include them or remove the dependency array. You can also do a functional update 'setRows(r => ...)' if you only need 'rows' in the 'setRows' call  react-hooks/exhaustive-deps

src/components/elements/lists/AutoLoadObjectList.js
  Line 87:8:   React Hook useCallback has missing dependencies: 'lastQuery' and 'rows'. Either include them or remove the dependency array. You can also do a functional update 'setRows(r => ...)' if you only need 'rows' in the 'setRows' call  react-hooks/exhaustive-deps
  Line 112:8:  React Hook useEffect has a missing dependency: 'allowLoadingSpinner'. Either include it or remove the dependency array                                                                                                              react-hooks/exhaustive-deps

src/components/elements/table/Table.js
  Line 6:1:  Unexpected default export of anonymous function  import/no-anonymous-default-export

src/components/pages/BackgroundTasks.js
  Line 16:19:  'response' is assigned a value but never used                                                              no-unused-vars
  Line 41:8:   React Hook useCallback has a missing dependency: 'type'. Either include it or remove the dependency array  react-hooks/exhaustive-deps

src/components/pages/TryOut.js
  Line 9:8:    'TuiSelectMultiConsentType' is defined but never used  no-unused-vars
  Line 11:10:  'ConsentTypes' is defined but never used               no-unused-vars

src/components/pages/UserLogs.js
  Line 49:90:  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/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md  jsx-a11y/anchor-is-valid

src/effects/AfterMountEffect.js
  Line 9:8:  React Hook useEffect was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies                                                     react-hooks/exhaustive-deps
  Line 9:8:  React Hook useEffect has a missing dependency: 'func'. Either include it or remove the dependency array. If 'func' changes too often, find the parent component that defines it and wrap that definition in useCallback  react-hooks/exhaustive-deps

src/remote_api/entrypoint.js
  Line 88:28:  Array.prototype.map() expects a return value from arrow function  array-callback-return

src/themes.js
  Line 1:9:  'red' is defined but never used  no-unused-vars