Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR React RS Lang #49

Open
wants to merge 255 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
255 commits
Select commit Hold shift + click to select a range
cce88d4
feat: setup prettier
Tonia-SE Mar 19, 2021
bb10e31
fix: add lint script
Tonia-SE Mar 19, 2021
b7bcf7f
Merge pull request #1 from lbratkovskaya/setup
lbratkovskaya Mar 19, 2021
6f3a35b
fix: comma instead of semicolon
Mar 19, 2021
743fe9c
Merge branch 'develop' into setup_prettier
lbratkovskaya Mar 20, 2021
764d053
Merge pull request #2 from lbratkovskaya/setup_prettier
lbratkovskaya Mar 20, 2021
8537a8d
feat: add slideout Footer
AlexeyTeterin Mar 21, 2021
552afc9
fix: code review fixes
AlexeyTeterin Mar 21, 2021
9714794
refactor: move URL and AUTHORS to constants.ts
AlexeyTeterin Mar 21, 2021
2fc292f
Merge pull request #3 from lbratkovskaya/footer
lbratkovskaya Mar 21, 2021
6fc4d18
feat: add auth pages and modal window
Tonia-SE Mar 21, 2021
45192c1
fix: applying comments
Tonia-SE Mar 22, 2021
b9504ef
fix: moved file upload to separeted function
Tonia-SE Mar 23, 2021
546dd5a
Merge pull request #4 from lbratkovskaya/add_authorization_pages
Tonia-SE Mar 23, 2021
85e0651
refactor: mentor's review fixes
AlexeyTeterin Mar 22, 2021
52bcdd5
refactor: rename Dictionary to WordBook
AlexeyTeterin Mar 23, 2021
35265ff
Merge pull request #6 from lbratkovskaya/refactor-dictionary
lbratkovskaya Mar 23, 2021
f073558
feat: header
Mar 23, 2021
a5fc487
feat: mobile navigation menu
Mar 23, 2021
58ec85c
refactor: extract commons
Mar 23, 2021
b3645b0
fix: prettiers
Mar 23, 2021
6d4d728
fix: func return types
Mar 23, 2021
ac8156a
refactor: split components to separate files
Mar 23, 2021
7e79619
fix: review comments
Mar 23, 2021
e27e7a6
feat: add logo
Mar 23, 2021
2b00deb
doc: style-guide
Mar 24, 2021
461bdbf
feat: auth pages to nav menu
Mar 24, 2021
cc21b11
feat: refactoring follow style guide
Tonia-SE Mar 23, 2021
3a6b57e
Merge pull request #5 from lbratkovskaya/header
lbratkovskaya Mar 25, 2021
24292ae
feat: refactoring follow style guide
Tonia-SE Mar 23, 2021
38bad01
Merge branch 'refactor_regforms' of github.com:lbratkovskaya/rslang i…
Tonia-SE Mar 25, 2021
1f270c5
fix: rewrite dispatches object in dispatches functions
Tonia-SE Mar 25, 2021
455baf9
Merge pull request #8 from lbratkovskaya/refactor_regforms
Tonia-SE Mar 26, 2021
fa809e9
feat: add cancel buttons to regforms
Tonia-SE Mar 25, 2021
baa79b7
feat: add pagination
AlexeyTeterin Mar 26, 2021
2b557b8
feat: add breadcrumbs
AlexeyTeterin Mar 24, 2021
4d0b223
refactor: separate types, constants
AlexeyTeterin Mar 24, 2021
972bac7
feat: add WordCard
AlexeyTeterin Mar 25, 2021
0b19774
refactor: move routes to constants
AlexeyTeterin Mar 25, 2021
f2fdc0f
fix: code review fixes
AlexeyTeterin Mar 25, 2021
1099b63
fix: move all constants to root path
AlexeyTeterin Mar 25, 2021
a604710
Merge pull request #9 from lbratkovskaya/wordbook
lbratkovskaya Mar 26, 2021
f0912d7
fix: menu item clickable area
Mar 25, 2021
ec0835e
fix: revert desktop nav menu
Mar 25, 2021
b6edb8c
Merge pull request #10 from lbratkovskaya/fix-header
lbratkovskaya Mar 26, 2021
802e1fc
fix: fix type cancel buttons
Tonia-SE Mar 27, 2021
4e5b734
Merge pull request #11 from lbratkovskaya/add_cancel_button_to_regforms
lbratkovskaya Mar 28, 2021
3eb7d7b
Merge pull request #7 from lbratkovskaya/style-guide
lbratkovskaya Mar 28, 2021
ae5f9f1
feat: add cards appear animation
AlexeyTeterin Mar 28, 2021
7fe8478
refactor: move appear_style to constants
AlexeyTeterin Mar 28, 2021
9c92f17
fix: eng to rus titles
AlexeyTeterin Mar 28, 2021
937a5ec
fix: minor fixes
AlexeyTeterin Mar 28, 2021
d34148a
fix: transition-in deps
AlexeyTeterin Mar 28, 2021
56d1133
feat: image preload before show
AlexeyTeterin Mar 28, 2021
469205c
feat: add card audio playback with text highlight
AlexeyTeterin Mar 29, 2021
a9360ec
fix: code review fixes
AlexeyTeterin Mar 29, 2021
702032d
fix: reduce gap to 85ms between cards appear
AlexeyTeterin Mar 29, 2021
6aaf7d0
Merge pull request #16 from lbratkovskaya/wordbook
AlexeyTeterin Mar 29, 2021
a40b617
feat: user dictionary actions
Mar 29, 2021
b6e119a
feat: user dictionary components
Mar 29, 2021
5d8994b
fix: review notes & refactor
Mar 30, 2021
0e096ce
Merge pull request #17 from lbratkovskaya/user-dictionary
lbratkovskaya Mar 30, 2021
a542829
feat: add smooth animation to transiton between pages
Tonia-SE Mar 26, 2021
648f37c
fix: apply comments
Tonia-SE Mar 27, 2021
9eae4c3
Merge pull request #12 from lbratkovskaya/add_smooth_transition
lbratkovskaya Mar 30, 2021
f9a8ca9
feat: implement saving data into session storage
Tonia-SE Mar 30, 2021
3969ec4
fix: apply comments
Tonia-SE Mar 30, 2021
2bd3a93
Merge pull request #13 from lbratkovskaya/implement_saving_data_to_se…
lbratkovskaya Mar 30, 2021
0ffa352
feat: add games store
AlexeyTeterin Mar 30, 2021
ca196f8
fix: minor fixes
AlexeyTeterin Mar 30, 2021
d1bebd5
fix: increase max actualWords length by 2
AlexeyTeterin Mar 30, 2021
2fd7c61
fix: code review fixes
AlexeyTeterin Mar 30, 2021
cae873f
Merge pull request #18 from lbratkovskaya/add_store_for_games
lbratkovskaya Mar 30, 2021
11382af
fix: replace browser router to hash router
Tonia-SE Mar 31, 2021
db58b6c
feat: made game savannah
alexlatypov94 Mar 24, 2021
728f634
fix: fixed after rebase
alexlatypov94 Mar 30, 2021
9471560
fix: fixed code
alexlatypov94 Mar 30, 2021
2621c9b
fix: it's last fixes!!!!!
alexlatypov94 Mar 30, 2021
4dabd14
fix: fixed random page
alexlatypov94 Mar 31, 2021
77bf339
Merge pull request #14 from lbratkovskaya/alexlatypov94/savannah
alexlatypov94 Mar 31, 2021
ba963e6
feat: change card style on add to difficult
AlexeyTeterin Mar 30, 2021
7136fef
feat: add interface IWordCardButton
AlexeyTeterin Mar 30, 2021
2840ff7
fix: button transition, stop icon color
AlexeyTeterin Mar 30, 2021
b9748ca
fix: some review fixes
AlexeyTeterin Mar 30, 2021
44fb39b
fix: minor fixes
AlexeyTeterin Mar 31, 2021
95714cb
Merge pull request #21 from lbratkovskaya/fix_smooth_animation
lbratkovskaya Mar 31, 2021
0e015d2
fix: animation exiting/exited styles
AlexeyTeterin Mar 31, 2021
da4185b
fix: wordbook errors on section change
AlexeyTeterin Mar 31, 2021
7ac5173
Merge pull request #22 from lbratkovskaya/fix_wordbook_errors
lbratkovskaya Mar 31, 2021
61de582
feat: add auto highlight user's difficult words on mount
AlexeyTeterin Mar 31, 2021
9d3bc51
Merge pull request #19 from lbratkovskaya/styled_add_to_difficult_click
AlexeyTeterin Mar 31, 2021
f26b693
feat: add show translate setting
AlexeyTeterin Mar 30, 2021
a302878
feat: add show buttons setting
AlexeyTeterin Mar 30, 2021
1a7574f
fix: code review fixes
AlexeyTeterin Mar 30, 2021
06be13c
fix: more review fixes
AlexeyTeterin Mar 30, 2021
2f985d9
fix: change styles
AlexeyTeterin Mar 30, 2021
acecb7f
Merge pull request #20 from lbratkovskaya/add_wordbook_settings
AlexeyTeterin Mar 31, 2021
0ec7bb6
feat: add timer to common components
Tonia-SE Apr 2, 2021
074fb65
feat: add timer component
Tonia-SE Apr 2, 2021
ba63f06
feat: add appear animation for Savannah
AlexeyTeterin Apr 2, 2021
09f0c19
fix: add bg loading error handle
AlexeyTeterin Apr 2, 2021
684993e
fix: add es lint check
Tonia-SE Apr 2, 2021
c4f7688
Merge pull request #25 from lbratkovskaya/add_timer_to_common_components
lbratkovskaya Apr 2, 2021
bb5b79e
feat: add GamesPopover
AlexeyTeterin Apr 2, 2021
ea0a47b
feat: add route change on click
AlexeyTeterin Apr 2, 2021
d033ca9
fix: move isCameFromWordbook flagto SavannahStartWindow
AlexeyTeterin Apr 2, 2021
714bb95
Merge pull request #23 from lbratkovskaya/add_games_popover
lbratkovskaya Apr 2, 2021
ba08d9d
Merge pull request #26 from lbratkovskaya/feat_savannah_appear_animation
lbratkovskaya Apr 4, 2021
e27670f
feat: dark header
AlexeyTeterin Apr 1, 2021
486da35
feat: change favicon
AlexeyTeterin Apr 3, 2021
35e32db
fix: change link style,
AlexeyTeterin Apr 3, 2021
3768def
feat: add random page route
AlexeyTeterin Apr 3, 2021
a8138a0
fix: letter-spacing in logo
AlexeyTeterin Apr 3, 2021
b5ce7f4
fix: logo size
AlexeyTeterin Apr 3, 2021
cbf9972
fix: code review fixes
AlexeyTeterin Apr 4, 2021
df99c2f
fix: my dictionary menu element style
AlexeyTeterin Apr 4, 2021
5cabbda
Merge pull request #27 from lbratkovskaya/style_header
AlexeyTeterin Apr 4, 2021
8c9eaa6
fix: sign-in route
AlexeyTeterin Apr 4, 2021
7b11ee0
fex: add menu item key prop
AlexeyTeterin Apr 4, 2021
3d0166f
Merge pull request #28 from lbratkovskaya/fix_errors
AlexeyTeterin Apr 5, 2021
92be4be
refactor: dictionary component & actions
Apr 5, 2021
65bc9f2
feat: dictionary
Apr 5, 2021
5ef8af6
feat: dictionary tabs
Apr 5, 2021
a1282eb
feat: word statistics
Apr 5, 2021
1987306
feat: dictionary sections styles
Apr 5, 2021
14b8dd2
feat: words studying results
Apr 5, 2021
cebdcd1
feat: sign in redirect
Apr 5, 2021
7c39e79
feat: total results badge & some fixes
Apr 5, 2021
226bec4
fix: review fixes
Apr 5, 2021
05232ef
Merge pull request #29 from lbratkovskaya/dict-components
lbratkovskaya Apr 5, 2021
f9bfb05
feat: add settings, fix gameselet's bugs and fix savannah bugs
alexlatypov94 Apr 5, 2021
d3c8b97
fix: fix after rebase
alexlatypov94 Apr 6, 2021
2d7a1c2
feat: added game mode setting
alexlatypov94 Apr 7, 2021
603fede
fix: fix bug
alexlatypov94 Apr 7, 2021
e30fc07
Merge pull request #30 from lbratkovskaya/alexlatypov94/settings_page
alexlatypov94 Apr 8, 2021
c596486
fix: change icons
AlexeyTeterin Apr 6, 2021
e0ceabb
Merge pull request #32 from lbratkovskaya/fix_icons_in_wordbook
AlexeyTeterin Apr 9, 2021
57e8969
feat: implement memory game
Tonia-SE Mar 28, 2021
d49fe88
feat: add moves into memory game
Tonia-SE Mar 30, 2021
2f64b09
feat: add audio and transition animation
Tonia-SE Mar 31, 2021
825f38e
fix: fix stop game
Tonia-SE Mar 31, 2021
4c970c5
feat: add control component
Tonia-SE Apr 1, 2021
163fba8
fix: fix full size
Tonia-SE Apr 1, 2021
01bb77b
fix: fix styles
Tonia-SE Apr 1, 2021
a28a8dd
feat: implement game finishing
Tonia-SE Apr 4, 2021
a0d6e0f
fix: applying comments
Tonia-SE Apr 7, 2021
a52a879
feat: add loader
Tonia-SE Apr 7, 2021
bb70899
fix: applying comments
Tonia-SE Apr 7, 2021
afc13b8
Merge pull request #31 from lbratkovskaya/add_memory_game
Tonia-SE Apr 10, 2021
726a954
feat: restore
Apr 10, 2021
5a6d852
feat: restore button actions
Apr 10, 2021
68df24e
feat: add racoons to registration pages
Tonia-SE Apr 7, 2021
183d24c
fix: move raccoons under forms
AlexeyTeterin Apr 10, 2021
b614cf9
fix: imports order
AlexeyTeterin Apr 10, 2021
c6d9407
fix: review fix
Apr 11, 2021
1b4cab9
Merge pull request #34 from lbratkovskaya/add_racoons_to_regform_pages
lbratkovskaya Apr 11, 2021
7c0e066
Merge pull request #36 from lbratkovskaya/restore-button
lbratkovskaya Apr 11, 2021
7e4070a
feat: add tests for Footer
AlexeyTeterin Apr 5, 2021
cea227e
fix: deps order
AlexeyTeterin Apr 6, 2021
51a1b05
feat: add WordCard base test
AlexeyTeterin Apr 6, 2021
a0a0623
feat: final 3 header tests
AlexeyTeterin Apr 7, 2021
f82ea44
feat: add wordBookActions tests
AlexeyTeterin Apr 7, 2021
5bf590d
feat: add dictionaryReducer tests
AlexeyTeterin Apr 7, 2021
5bfbf1e
feat: add utils tests
AlexeyTeterin Apr 7, 2021
07b578b
feat: add GameSelect tests
AlexeyTeterin Apr 8, 2021
2fa5baa
feat: add App test, LangSwitcher test
AlexeyTeterin Apr 8, 2021
fd5b4fa
fix: minor fixes
AlexeyTeterin Apr 8, 2021
1e4bba6
fix: minor fixes
AlexeyTeterin Apr 12, 2021
212324a
Merge pull request #35 from lbratkovskaya/tests
AlexeyTeterin Apr 12, 2021
6033ce8
feat: add volume control for memory game
Tonia-SE Apr 12, 2021
8cce45a
fix: fix add memory gameplay
Tonia-SE Apr 12, 2021
f0319bc
feat: add put memory game statistics on server
Tonia-SE Apr 12, 2021
107485a
feat: refactoring memory game components, add win and fail sounds
Tonia-SE Apr 12, 2021
66dc5d1
fix: applying comments
Tonia-SE Apr 12, 2021
8d07414
Merge pull request #37 from lbratkovskaya/add_memory_game
lbratkovskaya Apr 12, 2021
3adb718
feat: add audio-calling game
blackymax Mar 23, 2021
c76a80f
fix: change text colors
blackymax Apr 11, 2021
1023241
feat: add audio-calling game
blackymax Mar 23, 2021
cbf5765
refactor: refactor code-style issues
blackymax Apr 12, 2021
1005f47
Merge pull request #15 from lbratkovskaya/blackymax/create_audiocalling
lbratkovskaya Apr 12, 2021
9fa7762
fix: dictionary & statistics actions
Apr 12, 2021
8cd12d0
Merge pull request #39 from lbratkovskaya/dict-stat-actions
lbratkovskaya Apr 12, 2021
72fb8a9
init: add game-sprint
Gurnick013 Mar 31, 2021
5ccae4e
fix: fix rebase
Gurnick013 Apr 5, 2021
56cb378
feat: add timer switcher
Gurnick013 Apr 6, 2021
c44b671
fix: fix action add event
Gurnick013 Apr 12, 2021
0f841d0
Merge pull request #33 from lbratkovskaya/gurnick013/game-sprint
lbratkovskaya Apr 13, 2021
c769617
fix: fixed table, added ability to control from the keyboard, added p…
alexlatypov94 Apr 9, 2021
9fe5f74
fix: fixed table, added ability to control from the keyboard, added p…
alexlatypov94 Apr 9, 2021
a72a358
fix: fixes after rebase
alexlatypov94 Apr 12, 2021
de9f8c9
fix: fixed bugs
alexlatypov94 Apr 12, 2021
035d1e0
fix: fixes after rebase
alexlatypov94 Apr 12, 2021
a123526
fix: fixes
alexlatypov94 Apr 12, 2021
a538db5
Merge pull request #40 from lbratkovskaya/alexlatypov94/savannah_fix
lbratkovskaya Apr 13, 2021
379694d
feat: wordbook save settings to ls
AlexeyTeterin Apr 4, 2021
389f136
fix: minor fix
AlexeyTeterin Apr 4, 2021
3186d91
fix: review fixes
AlexeyTeterin Apr 13, 2021
3599b5a
Merge pull request #38 from lbratkovskaya/feat_wordbook_save_settings…
lbratkovskaya Apr 13, 2021
582dc74
fat: add games page
AlexeyTeterin Apr 12, 2021
2eb4da9
feat: add title
AlexeyTeterin Apr 12, 2021
50e5bde
fix: move settings to games menu
AlexeyTeterin Apr 12, 2021
4b7af6a
fix: add memory bg to gamecard
AlexeyTeterin Apr 12, 2021
1a8f71e
fix: review fixes
AlexeyTeterin Apr 13, 2021
6ea7192
fix: fix games backgrounds routes
AlexeyTeterin Apr 13, 2021
fc098ec
Merge pull request #41 from lbratkovskaya/add_games_page
AlexeyTeterin Apr 13, 2021
5920df0
feat: stats actions
Apr 13, 2021
c80fb33
feat: statistics in memory game
Apr 13, 2021
ac2a74a
feat: audio to dictionary
Apr 13, 2021
9e84ad6
feat: stats to audio
Apr 13, 2021
dc81bdd
feat: stats page
Apr 13, 2021
7fec8a3
feat: add statistics to sprint
Apr 13, 2021
e7c0404
fix: stats page styles
AlexeyTeterin Apr 13, 2021
48f4d5d
fix: memory game keys
Apr 13, 2021
f141045
fix: title's styles in Dictionary, Settings
AlexeyTeterin Apr 13, 2021
c81db9c
fix: games fixes
Apr 13, 2021
222b226
fix: games change transition
AlexeyTeterin Apr 13, 2021
811b65f
fix: minor styles fixes
AlexeyTeterin Apr 13, 2021
948d91e
fix: minor styles fixes
AlexeyTeterin Apr 13, 2021
10bbf90
fix: style guide
Apr 13, 2021
aaa8191
Merge branch 'statistics' of github.com:lbratkovskaya/rslang into sta…
Apr 13, 2021
2e3c0ae
fix: warning text on stats page
AlexeyTeterin Apr 13, 2021
7dd91aa
Merge pull request #42 from lbratkovskaya/statistics
lbratkovskaya Apr 14, 2021
2b0303f
feat: add welcome page
Tonia-SE Apr 14, 2021
a3d618c
fix: styles, add brief info
AlexeyTeterin Apr 14, 2021
182b8d2
Merge pull request #44 from lbratkovskaya/add_welcome_page
AlexeyTeterin Apr 14, 2021
b364034
feat: add sound for game over
blackymax Apr 14, 2021
39b50be
feat: add sound for game over
blackymax Apr 14, 2021
269a1e3
fix: update posting stat
blackymax Apr 14, 2021
033cb76
fix: conflicts after rebase
blackymax Apr 14, 2021
0897b5b
fix: delete console.log
blackymax Apr 14, 2021
7f27079
refactor: rewriting import in according to style-guide
blackymax Apr 14, 2021
5cbdd95
fix: fixed audio play when rounte changes
blackymax Apr 14, 2021
79f6736
fix: sound volume change
AlexeyTeterin Apr 14, 2021
d0362cc
Merge pull request #47 from lbratkovskaya/blackymax/update_audio_call…
lbratkovskaya Apr 14, 2021
d8d3ed1
feat: added gametraker in savannah and fix bugs
alexlatypov94 Apr 13, 2021
ad01640
feat: added gametraker in savannah and fix bugs
alexlatypov94 Apr 13, 2021
f05d645
Merge pull request #43 from lbratkovskaya/alexlatypov94/savannah_sound
lbratkovskaya Apr 14, 2021
56e8e55
fix: add settings popover to user's dictionary
AlexeyTeterin Apr 14, 2021
1fad171
fix: link to video
AlexeyTeterin Apr 14, 2021
36c2160
fix: fix deleted words render in wordbook
AlexeyTeterin Apr 14, 2021
04f3a81
fix: sound control in memory game
AlexeyTeterin Apr 14, 2021
fb42abd
Merge pull request #48 from lbratkovskaya/add_settings_popover_to_dic…
AlexeyTeterin Apr 14, 2021
d31ba77
fix: add change lang fix scroll
Gurnick013 Apr 14, 2021
a835385
feat: add countdown
Gurnick013 Apr 14, 2021
aeec70f
fix: fixes for keyboard & dictionary
Apr 14, 2021
9864b9b
Merge pull request #45 from lbratkovskaya/gurnick013/game_sprintfix
lbratkovskaya Apr 14, 2021
c61c767
fix: sing-in form redirect
Apr 15, 2021
86d446e
Merge pull request #50 from lbratkovskaya/signin-fix
lbratkovskaya Apr 15, 2021
49d956f
fix: error with undef
Apr 15, 2021
40cc894
Merge pull request #51 from lbratkovskaya/fixes
lbratkovskaya Apr 15, 2021
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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
63 changes: 63 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
module.exports = {
globals: {
JSX: true,
},
env: {
browser: true,
es2021: true,
'jest/globals': true,
jest: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
'plugin:jest/recommended',
'plugin:prettier/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint', 'jest', 'prettier'],
rules: {
'import/extensions': 'off',
'import/no-unresolved': 'off',
'react-hooks/exhaustive-deps': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
'max-len': [
1,
{
code: 100,
},
],
'react/jsx-filename-extension': [
2,
{
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
],
'react/destructuring-assignment': [
'off',
'always',
{
ignoreClassFields: true,
},
],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
};
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Build
build/

# IntellijIdea files
.idea/

# Dependency directories
node_modules/

.vscode/
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"semi": true,
"arrowParens": "always",
"useTabs": false,
"endOfLine": "auto"
}
13 changes: 13 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
roots: ['<rootDir>/src'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
snapshotSerializers: ['enzyme-to-json/serializer'],
setupFilesAfterEnv: ['<rootDir>/src/setupEnzyme.ts'],
moduleNameMapper: {
'^.+\\.(css|less|scss)$': 'babel-jest',
},
};
Loading