mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-05 20:15:59 +00:00
330644e88b
The service delivers the pictures review approved for a place, but TREK never read them. A new TrekCommunityService in the maps domain asks the TREK Places API for them (the index row for a gers place, /v1/community for an OSM one), accepts only paths of the service's picture store, and fetches the bytes with the installation's key, capped at 4 MB. Enrichment puts them ahead of Google and Commons, through the same photo cache, credited as TREK Community under CC BY 4.0. The enrichment cache now follows the community version for OSM places too, so a newly approved picture shows on the next open. Also lowers the client's no-non-null-assertion baseline to 380: moving Use this text into the description card removed two.
53 lines
1.7 KiB
JSON
53 lines
1.7 KiB
JSON
{
|
|
"src": {
|
|
"@typescript-eslint/no-non-null-assertion": 380,
|
|
"@typescript-eslint/no-misused-promises": 847,
|
|
"no-console": 88,
|
|
"complexity": 218,
|
|
"@typescript-eslint/no-explicit-any": 144,
|
|
"trek/no-swallowed-catch": 128,
|
|
"max-params": 32,
|
|
"trek/store-without-selector": 67,
|
|
"react-hooks/refs": 555,
|
|
"react-hooks/set-state-in-effect": 193,
|
|
"@typescript-eslint/no-floating-promises": 164,
|
|
"react-hooks/exhaustive-deps": 116,
|
|
"@typescript-eslint/no-unused-vars": 124,
|
|
"react-hooks/immutability": 28,
|
|
"max-lines-per-function": 130,
|
|
"react-hooks/static-components": 78,
|
|
"react-hooks/preserve-manual-memoization": 12,
|
|
"no-useless-assignment": 7,
|
|
"no-empty": 19,
|
|
"trek/no-window-globals": 41,
|
|
"react-refresh/only-export-components": 44,
|
|
"unused-disable-directive": 6,
|
|
"max-depth": 21,
|
|
"react-hooks/void-use-memo": 1,
|
|
"@typescript-eslint/no-unused-expressions": 2,
|
|
"react-hooks/purity": 2,
|
|
"preserve-caught-error": 53,
|
|
"no-useless-escape": 1
|
|
},
|
|
"suppressed": {
|
|
"@typescript-eslint/no-explicit-any": 38,
|
|
"react-hooks/exhaustive-deps": 46
|
|
},
|
|
"tests": {
|
|
"@typescript-eslint/no-explicit-any": 490,
|
|
"@typescript-eslint/no-non-null-assertion": 1915,
|
|
"@typescript-eslint/no-misused-promises": 22,
|
|
"@typescript-eslint/no-unused-vars": 51,
|
|
"@typescript-eslint/no-floating-promises": 33,
|
|
"trek/no-window-globals": 325,
|
|
"trek/no-swallowed-catch": 14,
|
|
"react-hooks/globals": 5,
|
|
"react-hooks/refs": 22,
|
|
"@typescript-eslint/no-this-alias": 1,
|
|
"trek/store-without-selector": 3,
|
|
"@typescript-eslint/no-unsafe-function-type": 2,
|
|
"no-console": 2,
|
|
"react-refresh/only-export-components": 1
|
|
}
|
|
}
|