Central repository for eslint rules and shared components
This are the Leipzig UI-GitHub repositories:
ui-finc-config,
ui-finc-select,
ui-idm-connect,
ui-erm-usage,
ui-plugin-find-erm-usage-data-provider,
ui-plugin-find-finc-metadata-source,
ui-plugin-find-finc-metadata-collection
For these repositories we would like to have a central repository for:
Leipzig-Eslint rules
All the Leipzig UI-GitHub repositories (ui-finc-config, ui-finc-select, ui-idm-connect, ui-erm-usage, ui-plugin-find-erm-usage-data-provider, ui-plugin-find-finc-metadata-source, ui-plugin-find-finc-metadata-collection) should be able to refer to a central repository to access to the central eslint rules defined by the Leipzig project Team.
The eslint rules have been already defined in this ticket:
https://folio-org.atlassian.net/browse/UIFC-396
The defined rules are these:
https://github.com/folio-org/ui-finc-config/blob/master/.eslintrcReusable Leipzig-Stripes components
Reusable Components should be outsourced to a central Repository so they can be accessed and imported by all UI-repositories, for example:
- Monthpicker
- RepeatableField
- EditCard
- NoPermissionMessage
See other GitHub repositories containing shared components:
https://github.com/folio-org/stripes-acq-components
https://github.com/folio-org/stripes-erm-components
https://github.com/folio-org/stripes-inventory-components
See other GitHub repositories containing eslint rules:
https://github.com/folio-org/eslint-config-stripes/blob/main/acquisitions.js
See Guidlines for creating repository:
https://dev.folio.org/guidelines/create-new-repo/#branch-protection-and-required-checks
TODO: When the code and configuration is in place, then this new repository needs to be manually added to Sonarcloud. Seek FOLIO DevOps assistance.
I created this repository for specify further discussions:
stripes-leipzig-components
To decide:
Decisions meeting 2025-10-15
content of repository (eslint and/or stripe-components)
(see https://folio-org.atlassian.net/wiki/spaces/FOLIJET/pages/edit-v2/1245577239#This-are-the-options-we-do-have-concerning-content%3A )
For now just stripes components. We will see about eslint latername “stripes-leipzig-components“
okstructure, setup of repository
okwhen is the right time to go official:
already asking for sonarcloude (PR will wait for it).
Jira can wait, maybe a tag will do. If Jira is available, add to README!
(maybe content and naming should be final?)
(should we ask for several repositories at the same time?)add repository to sonarcloude?
create Jira project?
This are the options we do have concerning content:
One repository for React components AND config files (like eslint rules)
Two different repositories
2.1 One repository for React components stripes-leipzig-components
2.2 One repository for config files “leipzig-config“
-> should this be a FOLIO GitHub repository since there are no config repository on team level?
-> should we use GitLab instead? https://git.sc.uni-leipzig.de/ublJust one repositoy for React components stripes-leipzig-components
We keep the.eslintrcredundant in every ui-app
-> we could propose a change to the FOLIO rules (eslint-config-stripes) on #folio-stripes-architecture and then file an ESCONF ticket
-> since it seems like the community will change fromeslinttoprettier, we should not waste to much time witheslintany more?
Code to move into the new repository/repositories:
constants into /stripes-leipzig-components/util/
see: https://github.com/folio-org/ui-finc-config/blob/master/src/util/constants.jsurls into /stripes-leipzig-components/util/ → may be replaced by APIs?
see https://github.com/folio-org/ui-finc-config/blob/master/src/components/DisplayUtils/urls.jshooks into /stripes-leipzig-components/hooks/
see https://github.com/folio-org/ui-finc-config/pull/372/filesMonthpicker into /stripes-leipzig-components/lib/
see https://github.com/folio-org/ui-erm-usage/tree/master/src/util/MonthpickerRepeatableField into /stripes-leipzig-components/lib/
see https://github.com/folio-org/ui-finc-config/blob/master/src/components/DisplayUtils/RepeatableField.jsViewContainer
see https://github.com/folio-org/ui-finc-config/blob/master/src/components/DisplayUtils/ViewContainer.jsrenderListUtils
see https://github.com/folio-org/ui-finc-config/blob/master/src/components/DisplayUtils/renderListUtils.jsFormContainer
see https://github.com/folio-org/ui-finc-config/blob/master/src/components/DisplayUtils/FormContainer.jsNoPermissionsMessage
see https://github.com/folio-org/ui-finc-config/blob/master/src/components/DisplayUtils/NoPermissionsMessage.js