Skip to content

Commit d7ae673

Browse files
authored
Merge pull request #262 from StreetSupport/chore/codebase-quality-hardening
chore: security hardening, TypeScript typing, and dead code removal
2 parents 2ee3aac + cc15799 commit d7ae673

File tree

29 files changed

+395
-1604
lines changed

29 files changed

+395
-1604
lines changed

config/jest.config.cjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,11 @@ module.exports = {
4343
// Mock third-party libraries
4444
'^leaflet': '<rootDir>/tests/__mocks__/leaflet.js',
4545
'^react-leaflet': '<rootDir>/tests/__mocks__/react-leaflet.ts',
46-
// Mock markdown components to avoid ESM issues
47-
'react-markdown': '<rootDir>/tests/__mocks__/react-markdown.js',
48-
'rehype-raw': '<rootDir>/tests/__mocks__/rehype-raw.js',
4946
},
5047
moduleDirectories: ['node_modules', 'src'],
5148
transformIgnorePatterns: [
5249
// Keep ESM packages unignored if needed for transpile
53-
'node_modules/(?!(react-leaflet|@react-leaflet|leaflet|@esm|lodash-es|react-markdown|rehype-raw|unified|remark-parse|remark-rehype|rehype-stringify|micromark|mdast-util-from-markdown|mdast-util-to-hast|hast-util-to-html|vfile|unist-util-stringify-position|bail|is-plain-obj|trough|zwitch|property-information|space-separated-tokens|comma-separated-tokens|hast-util-parse-selector|hastscript|html-void-elements|web-namespaces)/)',
50+
'node_modules/(?!(react-leaflet|@react-leaflet|leaflet|@esm|lodash-es)/)',
5451
],
5552
// Coverage configuration
5653
collectCoverage: true,

next.config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ const nextConfig = {
7777
},
7878
]
7979
: []),
80-
{
81-
protocol: 'https' as const,
82-
hostname: 'placekitten.com',
83-
pathname: '/**',
84-
},
8580
],
8681
},
8782

0 commit comments

Comments
 (0)