Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
273 commits
Select commit Hold shift + click to select a range
e3569fe
Add song validation constants
tomast1337 May 25, 2024
4c8b44e
Add getEditSong and patchSong methods to SongController
tomast1337 May 25, 2024
e650bb8
Update dependencies in pnpm-lock.yaml
tomast1337 May 25, 2024
e30baa9
Add new types for visibility, category, and license
tomast1337 May 25, 2024
fd44849
Add type imports and update visibility and category types in UploadSo…
tomast1337 May 25, 2024
e2307a9
Remove categoriesList from song validation
tomast1337 May 25, 2024
33d1ddf
Add categories, licenses, and visibility options to song constants
tomast1337 May 25, 2024
0d5e0a3
Add loadSong function to EditSongProvider context
tomast1337 May 25, 2024
e1a801e
Add SongEditForm component
tomast1337 May 25, 2024
c2f53bb
Add song data fetching and display in EditSongPage
tomast1337 May 25, 2024
a6f7dcc
Add enum validation for visibility, licenses, and categories in SongF…
tomast1337 May 25, 2024
75a5a72
Refactor SongForm component to use constants for categories, visibili…
tomast1337 May 25, 2024
2dc49e0
chore: replace Express package with express
Bentroen May 25, 2024
55601b5
Refactor song validation constants to use deep freeze
tomast1337 May 25, 2024
c95e7c9
Refactor enum types in uploadSongForm.zod.ts
tomast1337 May 25, 2024
b8e3817
Refactor EditSong.context.tsx to use UploadSongDtoType
tomast1337 May 25, 2024
bc29261
Refactor SongEditForm and SongEditPages components
tomast1337 May 25, 2024
8ac8f8d
Update song entity and related files
tomast1337 May 25, 2024
3628ad0
Remove unused type declaration in CoverData.dto.ts
tomast1337 May 25, 2024
94227bd
Add category, coverData, license, and customInstruments to UploadSongDto
tomast1337 May 25, 2024
052a18b
Refactor imports in song.service.ts
tomast1337 May 25, 2024
7917aff
Update song edit pages and song entity***
tomast1337 May 25, 2024
a25b60c
Fix cookie deletion in login.util.ts
tomast1337 May 25, 2024
185271d
Comment out console.log statements in HomePageProvider
tomast1337 May 25, 2024
a1dbe8a
Remove console.log statement and fix pagination state
tomast1337 May 25, 2024
95a3fd7
Refactor SongEditPages component to include user data
tomast1337 May 25, 2024
59125d2
Update visibility enum in SongFormSchema
tomast1337 May 25, 2024
06b74e9
Refactor spited processUploadedSong method into smaller methods
tomast1337 May 26, 2024
197d6f9
Refactor UploadSongDto validation constants
tomast1337 May 26, 2024
ced64d7
Comment out console.log statement in InstrumentPicker.tsx
tomast1337 May 26, 2024
5c68d78
Refactor EditSong.context.tsx and add loadSong function
tomast1337 May 26, 2024
789cc2d
Refactor SongEditForm and EditSongProvider
tomast1337 May 26, 2024
f1b10ef
Add getSongFile method to FileService
tomast1337 May 26, 2024
8f5cc59
Remove commented out code in SongController
tomast1337 May 26, 2024
ebcd9a1
Update song upload functionality and metadata
tomast1337 May 26, 2024
e85d4bd
Refactor song upload components and move them to the correct directory
tomast1337 May 28, 2024
e2f8806
Refactor EditSong.context.tsx and add loadSong function
tomast1337 May 28, 2024
69eda82
Refactor SongEditForm import statement
tomast1337 May 28, 2024
7c12222
Refactor song upload components and move them to the correct directory
tomast1337 May 28, 2024
1bd31f7
Added Delete Song route and controller method
tomast1337 May 28, 2024
7c8d7d7
Refactor deleteSong method in FileService
tomast1337 May 28, 2024
10eb694
refactor: improve deleteSong method in SongService
tomast1337 May 28, 2024
8299cce
Refactor song upload components and types
tomast1337 May 28, 2024
c8aaeb7
refactor: optimize MySongs context performance
tomast1337 May 28, 2024
efbded5
refactor: update song thumbnail on edit
tomast1337 May 28, 2024
649c7d3
refactor: add authentication guard for editing song info
tomast1337 May 28, 2024
22fc947
refactor: update MySongs context to use pageSizeInit in useState
tomast1337 May 28, 2024
4501856
refactor: update file service to handle profile picture upload and re…
tomast1337 May 28, 2024
59af30d
refactor: update .vscode settings to include cSpell words
tomast1337 May 28, 2024
1e5d40e
refactor: Update patchSong method in SongController to use RawBodyReq…
tomast1337 May 28, 2024
3fa19d8
refactor: Update EditSongProvider to use formMethods for submitting song
tomast1337 May 28, 2024
4e64423
refactor: Remove unused cookieParser function
tomast1337 May 28, 2024
9ca33a0
refactor: Fix weird type casting and raw body access in patchSong method
tomast1337 May 28, 2024
cd5033a
feat: Add UploadCompleteModal to display upload completion status
tomast1337 May 28, 2024
8e82f1d
refactor: Update user service to use shared validation DTOs
tomast1337 May 28, 2024
634547c
refactor: Simplify UploadSong component by removing unused variables …
tomast1337 May 28, 2024
16d24aa
refactor: Update EditSongProvider to handle form submission and displ…
tomast1337 May 28, 2024
f003e19
refactor: Update getSongFile method in SongController to include sour…
tomast1337 May 28, 2024
f9fa196
chore: add some TODOs related to project structure and missing features
Bentroen May 28, 2024
bd4f154
fix: change download http redirect to `302 FOUND`
Bentroen May 28, 2024
2b997e8
Merge branch 'song-create-and-edit-fixes' of https://github.com/OpenN…
Bentroen May 28, 2024
f96fc10
refactor: Update MySongsTable component to conditionally render based…
tomast1337 May 28, 2024
7547602
refactor: Update MySongsTable component to conditionally render based…
tomast1337 May 28, 2024
fd9b1c2
refactor: Update MySongsTable component to conditionally render based…
tomast1337 May 28, 2024
9e24577
refactor: Update NavbarLayout component to use flex-grow for main con…
tomast1337 May 28, 2024
1c2c380
refactor: Update MySongsTable component to render each row as a separ…
tomast1337 May 28, 2024
171db2b
refactor: Update FormElements component to prevent invalid html prop …
tomast1337 May 28, 2024
67b2614
refactor: Update SongForm component to use 'Save' instead of 'Update'…
tomast1337 May 28, 2024
98d594e
Removed uploadmodal from EditSong.context.tsx and added a redirect to…
tomast1337 May 28, 2024
1c8256e
refactor: Update SongForm component to disable input fields when locked
tomast1337 Jun 1, 2024
7717195
refactor: Disable artist input field in SongForm when locked
tomast1337 Jun 1, 2024
4dde4e0
refactor: Update SongEditForm and SongUploadForm to disable input fie…
tomast1337 Jun 1, 2024
33d349f
chore: add react-loading-skeleton dependency
Bentroen Jun 1, 2024
402451a
fix: add toast notification when signing out
Bentroen Jun 1, 2024
2d335bd
chore: fix warning about eslint missing peer dependency
Bentroen Jun 1, 2024
0221ca5
refactor: move loginPage to components folder
Bentroen Jun 1, 2024
b029923
fix: make download song buttons work
Bentroen Jun 1, 2024
328f2fb
fix: attempt to download file with correct name (WIP)
Bentroen Jun 1, 2024
5e84d75
fix: match style of upload and edit song forms/pages
Bentroen Jun 1, 2024
dab81b7
fix: set title as filename when downloading file
Bentroen Jun 1, 2024
31ed2ba
refactor: integrate error message into form input components
Bentroen Jun 1, 2024
86af164
refactor: Update SongPage and SongDetails components to use SongViewD…
tomast1337 Jun 1, 2024
89c37e4
refactor: Remove unnecessary import of SongForm.1 in SongEditForm and…
tomast1337 Jun 1, 2024
b998deb
refactor: Remove unnecessary SongPageView types
tomast1337 Jun 1, 2024
2f0b17b
fix: add OpenNBS link and copyright on login page
Bentroen May 21, 2024
3aff3b5
cypress init
tomast1337 May 29, 2024
8d5d556
Update dependencies in pnpm-lock.yaml
tomast1337 May 25, 2024
ddf3d30
feat: Add lazy loading for user profile images on SongPageButtons com…
tomast1337 Jun 1, 2024
0bbc666
refactor: Update Checkbox component styling
tomast1337 Jun 1, 2024
3b3c768
refactor: Remove TableCell component from SongRow
tomast1337 Jun 1, 2024
35391dc
cypress init
tomast1337 May 29, 2024
e234d14
Update dependencies in pnpm-lock.yaml
tomast1337 May 25, 2024
bc05e08
cypress init
tomast1337 May 29, 2024
7ec7aab
fix: refine design of error balloons
Bentroen Jun 3, 2024
412a92c
fix: remove redundant `isVisible` prop in `ErrorBalloon`
Bentroen Jun 3, 2024
dd2a0ec
fix: thumbnail picker not showing while song hasn't been downloaded
Bentroen Jun 3, 2024
83e5b9f
fix: add disabled styles to text area and thumbnail
Bentroen Jun 3, 2024
34f5230
fix: thumbnail input sliders not working
Bentroen Jun 3, 2024
8c26cc2
refactor: rename `EditSongPage` for consistency with upload
Bentroen Jun 3, 2024
1fddee2
refactor: rename 'artist' to 'author' in form, and make it not required
Bentroen Jun 3, 2024
0f02a90
refactor: group form provider destructuring
Bentroen Jun 3, 2024
83200be
fix: add loading spinner while song is loading for edit (WIP)
Bentroen Jun 3, 2024
ef45400
fix: lock form after clicking submit
Bentroen Jun 3, 2024
f70a7ac
refactor: make label part of abstracted form components
Bentroen Jun 3, 2024
ffc8e9d
chore: add TODO related to refactoring
Bentroen Jun 3, 2024
e59e31a
fix: song description not appearing in My Songs page
Bentroen Jun 3, 2024
a93a6b8
refactor: Update EditSongProvider to set default values for artist field
tomast1337 Jun 3, 2024
1ed136d
refactor: Add button for testing formMethods in SongEditForm
tomast1337 Jun 3, 2024
80b13a2
refactor: Update SongForm to enable form submission and fix disabled …
tomast1337 Jun 3, 2024
1b2a9c9
refactor: Improve form accessibility and flexibility
tomast1337 Jun 3, 2024
4b75c1f
refactor: Update SongUploadForm to use formMethods from useSongProvider
tomast1337 Jun 3, 2024
e11ee0a
refactor: Update SongEditForm to use formMethods from useSongProvider
tomast1337 Jun 3, 2024
744eba7
refactor: Update artist field in EditSongProvider to use formMethods
tomast1337 Jun 3, 2024
8681700
refactor: Update SongSelector to import toast from react-hot-toast
tomast1337 Jun 3, 2024
a2948bb
refactor: Make author field optional in SongForm
tomast1337 Jun 3, 2024
0bc8e4a
refactor: Update InstrumentPicker to use unique keys for options
tomast1337 Jun 3, 2024
a3c1f04
fix: loading error in next `Image` in song page
Bentroen Jun 3, 2024
735456d
fix: hide song features that won't ship with the initial version
Bentroen Jun 3, 2024
18ede3e
fix: correctly show play count and time since upload in song
Bentroen Jun 3, 2024
2c48f44
refactor: Update EditSongProvider to include original data comparison
tomast1337 Jun 4, 2024
463d58f
feat: update user popup menu and add external project links
Bentroen Jun 4, 2024
639e45c
feat: add skeleton loading to song edit form
Bentroen Jun 4, 2024
0a6ff2f
fix: remove skeleton loading from labels
Bentroen Jun 4, 2024
cd795a9
fix: match skeleton loader elements to form height
Bentroen Jun 4, 2024
9b71a05
fix: remove extra spacer between form fields and submit button
Bentroen Jun 4, 2024
2c3cecd
feat: add cancel button to song edit form
Bentroen Jun 4, 2024
b9d8c1e
fix: change toast default to bottom center and increase duration
Bentroen Jun 4, 2024
df779e0
fix: redirect to edit page when clicking song title in 'My songs' page
Bentroen Jun 4, 2024
5eb0bcd
fix: dim text shown on missing description in 'My songs' page
Bentroen Jun 4, 2024
7c2fe8d
refactor: abstract form label components and add dimmed style
Bentroen Jun 4, 2024
dc3f4ab
feat: implement loading profile picture from user profile on login
Bentroen Jun 4, 2024
d94d79e
feat: implement 'Open in NBS' button in song page
Bentroen Jun 4, 2024
9d854af
feat: implement open in NBS backend route and button functionality
Bentroen Jun 4, 2024
48bd9ac
fix: singular 'view' when view count = 1
Bentroen Jun 4, 2024
8922034
fix: missing ref prop in label forwardRef element
Bentroen Jun 4, 2024
cac0756
refactor: add SongsFolder type definition
tomast1337 Jun 4, 2024
77ae5e0
refactor: update strictPropertyInitialization setting in tsconfig.json
tomast1337 Jun 4, 2024
2ffa58e
chore: add 'virtuals' to cSpell.words in .vscode/settings.json
tomast1337 Jun 4, 2024
a2cf595
refactor: import type for CategoryType, LicenseType, and VisibilityTy…
tomast1337 Jun 4, 2024
6c1eac8
refactor: import type for CategoryType, LicenseType, and VisibilityTy…
tomast1337 Jun 4, 2024
5a9a079
refactor: fix label forwardRef element missing ref prop
tomast1337 Jun 4, 2024
f41662a
refactor: Update types and imports for SongPageDtoType and SongPrevie…
tomast1337 Jun 4, 2024
a1c3187
refactor: Remove unused types and imports in my-songs module
tomast1337 Jun 4, 2024
3680d1c
refactor: Update tsconfig.json to disable strictPropertyInitialization
tomast1337 Jun 4, 2024
49e9df8
refactor: Disable strictPropertyInitialization in tsconfig.json
tomast1337 Jun 4, 2024
0e14425
refactor: Remove unused types and imports in browse module
tomast1337 Jun 4, 2024
4cf3dc2
refactor: Update login page with data-test attributes and improve cod…
tomast1337 Jun 4, 2024
723bf4a
refactor: Add PageQueryDTO for pagination and filtering
tomast1337 Jun 4, 2024
9d6d17c
refactor: Update imports for PageQueryDTO in user and song controllers
tomast1337 Jun 4, 2024
7e0ff3a
refactor: Update imports for UploadSongDtoType in song-edit components
tomast1337 Jun 4, 2024
b3d8712
refactor: Update sorting order in getSongList method
tomast1337 Jun 4, 2024
dcb726a
refactor: Update fetchRecentSongs and fetchFeaturedSongs to use PageQ…
tomast1337 Jun 4, 2024
2daa730
refactor: Update SongCard component to use SongPreviewDtoType
tomast1337 Jun 4, 2024
238da78
feat: implement skeleton loading for 'My songs' table
Bentroen Jun 4, 2024
0325078
fix: re-add unique key to song rows `map`
Bentroen Jun 4, 2024
3cb72e1
fix: make scrollbar track always visible
Bentroen Jun 4, 2024
3f80d1b
refactor: remove unused styles in globals.css
Bentroen Jun 4, 2024
eed7afd
refactor: move html and body min height from layout to global stylesheet
Bentroen Jun 4, 2024
016aa84
fix: fit skeleton loading perfectly to loaded content
Bentroen Jun 4, 2024
6a48f1d
fix: remove unnecessary key property
Bentroen Jun 4, 2024
59d53b3
refactor: Update song service to use PageQueryDTO for pagination and …
tomast1337 Jun 4, 2024
e7d3bec
refactor: Update HomePageProvider import in browse page
tomast1337 Jun 4, 2024
dcf5ff9
refactor: Update FeaturedSongsProvider and RecentSongsProvider to use…
tomast1337 Jun 4, 2024
ee2828b
refactor: Update HomePageComponent to use separate context providers …
tomast1337 Jun 4, 2024
002b2c6
fix: add skeleton loading to song table footer
Bentroen Jun 4, 2024
a681197
refactor: Update context providers and pagination in browse page
tomast1337 Jun 4, 2024
c39768c
Merge branch 'song-create-and-edit-fixes' of https://github.com/OpenN…
Bentroen Jun 4, 2024
618425a
fix: set timespan buttons to disabled when they are active
Bentroen Jun 4, 2024
a2936d4
refactor: Update getSongByPage method in SongService for better code …
tomast1337 Jun 4, 2024
084f402
refactor: Update PageQueryDTO to make page, limit, sort, and order op…
tomast1337 Jun 4, 2024
968aa01
refactor: Update sort options for recent and featured songs in browse…
tomast1337 Jun 4, 2024
5c57aee
refactor: Update TimespanButton and FeaturedSongsProvider to use sepa…
tomast1337 Jun 4, 2024
5311d9e
feat: Add Embla Carousel React library for featured song carousel fun…
tomast1337 Jun 4, 2024
5bde1df
refactor: Update cSpell dictionary with new words
tomast1337 Jun 4, 2024
66db2be
Added dot button to carousel
tomast1337 Jun 4, 2024
11a8c71
fix: scroll carousel back to the start instead of looping at the end
Bentroen Jun 5, 2024
c46567d
fix: shorten carousel scroll duration
Bentroen Jun 5, 2024
47909f4
feat: obtain background colors fromtailwindcss
Bentroen Jun 5, 2024
a1a481f
refactor: map colors from tailwind directly instead of filtering with…
Bentroen Jun 5, 2024
ed9a6f4
fix: user menu popover arrow changing size during transition
Bentroen Jun 5, 2024
97bbf0a
fix: readd user menu shadow
Bentroen Jun 5, 2024
822f9f1
fix: adjust padding and margins on user menu items
Bentroen Jun 5, 2024
4fa7d71
chore: configure tooltip component
Bentroen Jun 5, 2024
1aff7f1
feat: add tooltip to navbar upload button
Bentroen Jun 5, 2024
310231f
chore: remove incorrect skeleton import
Bentroen Jun 5, 2024
4e1da58
chore: update pnpm-lock
Bentroen Jun 5, 2024
44c5fc0
fix: make active timespan buttons highlighted (again)
Bentroen Jun 5, 2024
d7432ea
fix: improve label/display of some properties in song page
Bentroen Jun 5, 2024
e8c55f4
chore: remove unused provider unpacked variables
Bentroen Jun 5, 2024
360a4ee
fix: file input accepting .exe, .com and other binary types
Bentroen Jun 5, 2024
68326de
fix: mitigate song card scale clipping on carousel edges
Bentroen Jun 5, 2024
563ac3a
fix: inconsistent x padding between header and page body
Bentroen Jun 5, 2024
80e8cdb
feat: Add @radix-ui/react-slider dependency for slider functionality
tomast1337 Jun 5, 2024
8bc0bd9
chore: Remove unnecessary trailing comma in colors.ts
tomast1337 Jun 5, 2024
caf74d9
chore: Update SongThumbnailInput to use data object for background co…
tomast1337 Jun 5, 2024
380fae1
chore: Update SongThumbnailInput to use data object for background co…
tomast1337 Jun 5, 2024
64247a5
refactor: Update SongThumbnailInput splitted the SongThumbnailInput s…
tomast1337 Jun 5, 2024
40b5214
refactor: Separate SongThumbnailInput sliders into a separate component
tomast1337 Jun 5, 2024
40c5825
refactor: Separate SongThumbnailInput sliders into a separate component
tomast1337 Jun 5, 2024
e3ecbab
refactor: Remove commented code and unused imports in UploadSongDto.d…
tomast1337 Jun 5, 2024
1e20362
feat: Generate thumbnail only if thumbnail data has changed
tomast1337 Jun 5, 2024
9c36782
refactor: Update SongService to check for changes before updating a song
tomast1337 Jun 5, 2024
0505f61
refactor: renamed folder from upload to song-upload
tomast1337 Jun 5, 2024
d513326
refactor: Update MY_SONGS constants with default page size and sort o…
tomast1337 Jun 6, 2024
653d2d3
refactor: Update MySongsPage imports to use correct context path
tomast1337 Jun 6, 2024
bca9ce0
refactor: Update MySongsTable to display maximum page size of songs
tomast1337 Jun 6, 2024
1c8337a
Mysongs: "Add minimum height to table (so the footer is always at the…
tomast1337 Jun 6, 2024
538a31f
chore: Remove unused isLoading from MySongsTable component
tomast1337 Jun 6, 2024
0a55caf
refactor: Add download button for song file in SongEditForm
tomast1337 Jun 6, 2024
bb567d2
refactor: Add useEffect hook to check for unsaved changes before leav…
tomast1337 Jun 6, 2024
a6d3808
refactor: Remove console.log statements from EditSong and UploadSong …
tomast1337 Jun 6, 2024
d6e41c6
refactor: Add lazy loading for song thumbnails in HomePageComponent
tomast1337 Jun 6, 2024
b8b8f22
refactor: Improve SongCard component structure and performance
tomast1337 Jun 7, 2024
8a638cd
refactor: Update MY_SONGS constants with default page size and sort o…
tomast1337 Jun 7, 2024
0025b9f
Removed unused functions
tomast1337 Jun 7, 2024
2a5b80e
refactor: Update MySongsPage to use constant for page size initializa…
tomast1337 Jun 7, 2024
66f26ff
refactor: Update FeaturedSongsProvider to use constant for default pa…
tomast1337 Jun 7, 2024
95c2233
refactor: Update EditSong.context.tsx to compare customInstruments ar…
tomast1337 Jun 7, 2024
97215ec
Revert "chore: remove incorrect skeleton import"
Bentroen Jun 7, 2024
09f9d08
refactor: Add lazy loading for song thumbnails in SongCard component
tomast1337 Jun 7, 2024
6c158f1
Removed disable option from the useForm register function
tomast1337 Jun 7, 2024
91b1ef4
refactor: create FileDisplay shared component
Bentroen Jun 7, 2024
260b35f
feat: add file display and song download button to edit page
Bentroen Jun 7, 2024
16be222
refactor: rename UploadSong to UploadSongPage
Bentroen Jun 7, 2024
973463b
refactor: move upload/edit page styles down into component from `page…
Bentroen Jun 7, 2024
2080d7d
fix: improve typography and truncate edit song page title
Bentroen Jun 7, 2024
4fd2466
fix: remove extra shadow in user popover menu
Bentroen Jun 7, 2024
5b39efd
fix: prevent menu border disappearing due to clashing shadows
Bentroen Jun 7, 2024
d0fe33c
feat: implement skeleton loading for homepage songs
Bentroen Jun 7, 2024
e653f1c
fix: adapt card size to max row height + clamp title to two lines
Bentroen Jun 7, 2024
0753d83
fix: unnecessary href fallback
Bentroen Jun 7, 2024
98bd5f7
fix: properly create skeleton loading components on load
Bentroen Jun 7, 2024
ccf4b71
fix: pass initial unloaded songs from server for skeleton loading
Bentroen Jun 7, 2024
5b76487
fix: enable thumbnail image optimization again
Bentroen Jun 7, 2024
8f1c800
fix: make card height fixed again
Bentroen Jun 7, 2024
52307ec
fix: make carousel wrap around instead of looping
Bentroen Jun 7, 2024
5e017cd
fix: implement server fetching again on homepage songs
Bentroen Jun 7, 2024
d22b3eb
fix: prevent skeleton loading from appearing in empty table rows
Bentroen Jun 7, 2024
f69368c
improvement: rename 'Created at' table column to 'Uploaded at'
Bentroen Jun 7, 2024
d143b1c
improvement: decrease opacity of disabled footer paging button
Bentroen Jun 7, 2024
fcd59cb
refactor: replace form numeric limits with constants from shared module
Bentroen Jun 7, 2024
ce984b3
fix: carousel div overflow breaking page layout
Bentroen Jun 7, 2024
c5ce14a
fix: prevent trailing lines on transform animations
Bentroen Jun 7, 2024
b424bc1
chore: update eslint configuration to policy blank lines
Bentroen Jun 7, 2024
23e4ff3
chore: add lint command to shared/ package and command to lint all mo…
Bentroen Jun 7, 2024
59fd651
chore: update eslint formatter config
Bentroen Jun 7, 2024
37c2a6e
chore: disable warning due to use of `require()`
Bentroen Jun 7, 2024
f3c9e17
chore: apply blank line linting rules
Bentroen Jun 7, 2024
629412f
chore: add linting fix commit to `.git-blame-ignore-revs`
Bentroen Jun 7, 2024
184df24
Merge branch 'song-create-and-edit-fixes'
Bentroen Jun 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,37 @@ module.exports = {
'@typescript-eslint/no-inferrable-types': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'warn', // Taken from the JSON file
'@typescript-eslint/lines-between-class-members': [
'warn',
{
enforce: [
{ blankLine: 'always', prev: '*', next: '*' },
{ blankLine: 'always', prev: '*', next: 'method' },
],
},
{ exceptAfterSingleLine: true },
],
'padding-line-between-statements': 'off',
'@typescript-eslint/padding-line-between-statements': [
'warn',
{ blankLine: 'any', prev: 'import', next: '*' }, // handled by sort-imports
{ blankLine: 'any', prev: '*', next: 'singleline-const' },
{ blankLine: 'any', prev: '*', next: 'singleline-let' },
{ blankLine: 'any', prev: '*', next: 'singleline-var' },
{ blankLine: 'always', prev: '*', next: 'return' },
{ blankLine: 'always', prev: '*', next: 'block-like' },
{ blankLine: 'always', prev: '*', next: 'multiline-block-like' },
{ blankLine: 'always', prev: '*', next: 'multiline-expression' },
{ blankLine: 'always', prev: '*', next: 'multiline-const' },
{ blankLine: 'always', prev: '*', next: 'multiline-let' },
{ blankLine: 'always', prev: '*', next: 'multiline-var' },
{ blankLine: 'always', prev: 'block-like', next: '*' },
{ blankLine: 'always', prev: 'multiline-block-like', next: '*' },
{ blankLine: 'always', prev: 'multiline-expression', next: '*' },
{ blankLine: 'always', prev: 'multiline-const', next: '*' },
{ blankLine: 'always', prev: 'multiline-let', next: '*' },
{ blankLine: 'always', prev: 'multiline-var', next: '*' },
],
'prettier/prettier': [
'warn',
{
Expand Down
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Apply blank line linting rules
2bbe554f470c5b7a0d59927dd3b9783314a0d805
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"eslint.run": "onType",
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
}
},
"cSpell.words": ["DTOs", "Embla", "uuidv", "virtuals"]
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"dev": "pnpm run --parallel dev",
"dev:web": "pnpm run --filter ./web dev",
"dev:server": "pnpm run --filter ./server dev",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "pnpm run --parallel lint",
"cy:open": "pnpm run --filter ./tests cy:open",
"prettier": "prettier --write ."
},
Expand All @@ -20,7 +22,7 @@
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-unused-imports": "^3.1.0",
"eslint-plugin-unused-imports": "^2.0.0",
"prettier": "^2.8.8"
},
"dependencies": {
Expand Down
Loading