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

Draft: Add support for react-testing-library with shallow rendering #216

Open
wants to merge 424 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
424 commits
Select commit Hold shift + click to select a range
2fe8fd6
perf: ⚡️ Performance optimizations
jsimck Jan 16, 2022
23fb3c8
chore: 🤖 Removed esbuild dependency
jsimck Jan 16, 2022
e53bc6b
perf: ⚡️ Target optimizations
jsimck Jan 16, 2022
3e2ee88
feat: 🎸 Accept array of globs with translations
Jan 17, 2022
604d05a
fix: 🐛 Fix dependency to build.js in urlParser
Jan 18, 2022
d30a9c8
chore: 🤖 Sort of working node_modules build
jsimck Jan 19, 2022
6aa826a
chore: 🤖 Fixed es5 builds
jsimck Jan 19, 2022
60bf982
refactor: 💡 disabled HMR in es5
jsimck Jan 20, 2022
63db8e7
fix: 🐛 babel parser fixes, fixed new compile format err parsing
jsimck Jan 20, 2022
5f8976a
feat: 🎸 Show localization in example
Jan 21, 2022
3fca32f
chore: 🤖 Merge ima-webpack
Jan 21, 2022
28c3f50
fix: 🐛 Fix localize from hook
Jan 21, 2022
b258e21
fix: 🐛 Location of localized files
Jan 21, 2022
84962c7
Merge pull request #153 from lastuvka/ima-webpack-localize
lastuvka Jan 21, 2022
2421f08
feat: 🎸 Added ima-legacy-plugin-loader
jsimck Jan 21, 2022
b3ba18f
Merge branch 'ima-webpack' into ima-webpack-es5-take-2
jsimck Jan 21, 2022
c14338b
docs: ✏️ Fixed typo
jsimck Jan 21, 2022
756ed12
perf: ⚡️ Target, caching improvements
jsimck Jan 21, 2022
501e278
Merge pull request #155 from seznam/ima-webpack-es5-take-2
jsimck Jan 22, 2022
e76234c
perf: ⚡️ Multiple performance tweaks
jsimck Jan 22, 2022
8b4f113
Merge remote-tracking branch 'origin' into ima-webpack
jsimck Jan 24, 2022
940ba18
style: 💄 Merged stylelint configs
jsimck Jan 24, 2022
391b831
style: 💄 Synced eslint dependencies and settings
jsimck Jan 24, 2022
31a9655
fix: 🐛 Fixed error when there are no localizations
jsimck Jan 24, 2022
7d84f6a
chore: 🤖 Moved shared deps to root package.json
jsimck Jan 24, 2022
5939c45
fix: 🐛 React deprecated createFactory fix, added --clearCache
jsimck Jan 24, 2022
2f653d7
fix: 🐛 Fixed reloading of locale files
jsimck Jan 24, 2022
b0e8a44
feat: 🎸 Added option to set jsxRuntime to ima.config.js
jsimck Jan 27, 2022
528e487
refactor: 💡 Removed glob-import-loader, fixed runtime config
jsimck Jan 27, 2022
1e98408
fix: 🐛 hot module updates static path fixes
jsimck Jan 28, 2022
2b7e88d
refactor: 💡 Removed additional data factory usage
jsimck Jan 28, 2022
e01514c
feat: 🎸 Custom extend-less-loader (glob imports support)
jsimck Jan 28, 2022
c56c5f2
perf: ⚡️ Added opt-in enableCssModules option to enable CSSmod
jsimck Jan 28, 2022
590050d
fix: 🐛 Fix ignoring less files when CSSModules are disabled
jsimck Jan 28, 2022
dbe41e6
refactor: 💡 cleanup
jsimck Jan 29, 2022
39fd8de
refactor: 💡 Dev server fixes and refactor
jsimck Jan 29, 2022
5b54db5
refactor: 💡 HMR now uses rollup for build
jsimck Jan 29, 2022
066f311
refactor: 💡 Removed legacy code
jsimck Jan 30, 2022
6c4bbd7
refactor: 💡 Fixed locale template
jsimck Jan 31, 2022
c68d150
feat: 🎸 Added dev server public, port and hostname options
jsimck Feb 1, 2022
0c45896
feat: 🎸 Allow to build app in development mode
jsimck Feb 1, 2022
82df2fc
feat: 🎸 Added NODE_ENV normalization on CLI startup
jsimck Feb 1, 2022
bd8d07a
feat: 🎸 Depply merge watch options defaults
jsimck Feb 2, 2022
049c1f7
refactor: 💡 Cleanup
jsimck Feb 2, 2022
46d785d
Merge pull request #162 from seznam/ima-webpack-dev-server-refactor
jsimck Feb 2, 2022
01d359b
refactor: 💡 Moved custom babel, postcss config to ima.config.js
jsimck Feb 8, 2022
0eeb72c
refactor: 💡 updated dependencies
jsimck Feb 9, 2022
eb03447
fix: 🐛 Reverted less-extended-loader usage
jsimck Feb 10, 2022
a6d3fac
refactor: 💡 Streamlined config creation, refactored cli hook
jsimck Feb 10, 2022
a9da3e1
refactor: 💡 Fixed CLI plugin types
jsimck Feb 10, 2022
3f48ae0
feat: 🎸 Initial version of LessConstantsPlugin
jsimck Feb 10, 2022
03baedb
refactor: 💡 Moved cleanup before any other process
jsimck Feb 11, 2022
0e93753
refactor: 💡 Plugin filenames rename
jsimck Feb 11, 2022
6e91baa
refactor: 💡 LessConstantsPlugin cleanup
jsimck Feb 11, 2022
cb4931b
refactor: 💡 Final LessConstantsPlugin tweaks
jsimck Feb 11, 2022
2cf6062
feat: 🎸 New logger for plugins
jsimck Feb 11, 2022
876cb65
refactor: 💡 New logger
jsimck Feb 11, 2022
57ef71b
refactor: 💡 Reverted forced null-loader for debugging
jsimck Feb 11, 2022
5d5867f
Merge pull request #164 from seznam/ima-webpack-plugin-rewrite
jsimck Feb 11, 2022
8c96e4e
refactor: 💡 Disabled broken source maps on css-loader
jsimck Feb 11, 2022
7decf8f
feat: 🎸 Added progress plugin to indicate built progress
jsimck Feb 13, 2022
05eed21
fix: 🐛 Fixed occasional duplication of progress bar
jsimck Feb 13, 2022
9562ea1
refactor: 💡 Refactored scramble css to webpack plugin
jsimck Feb 16, 2022
d0ffc54
refactor: 💡 ScrambleCssWebpackPlugin
jsimck Feb 16, 2022
dfa9756
feat: 🎸 Added caching option to the scramble css plugin"
jsimck Feb 16, 2022
d3dff29
refactor: 💡 ScrambleCss CLI plugin refactor and cleanup
jsimck Feb 16, 2022
1a46e1e
refactor: 💡 Final fixes and enhancements for CSS scrambler
jsimck Feb 16, 2022
fb7c50f
feat: 🎸 AmpCliPlugin
jsimck Feb 17, 2022
53aff23
refactor: 💡 AmpPlugin
jsimck Feb 17, 2022
3eb346d
feat: 🎸 Final fixes for amp and scramble plugin
jsimck Feb 17, 2022
7b424a0
Merge pull request #165 from seznam/amp-scramble-refactor
jsimck Feb 17, 2022
0ca3f1c
fix: 🐛 Fixed error-overlay view compiled btn text wrapping
jsimck Feb 17, 2022
033bbe4
feat: 🎸 Promisified fs operations
jsimck Feb 17, 2022
bce3e06
feat: 🎸 Replaced fast-glob with globby (more features)
jsimck Feb 17, 2022
123d957
chore: 🤖 Updated dependencies
jsimck Feb 18, 2022
c65b4ef
perf: ⚡️ devServer gzipped and cached static serving
jsimck Feb 18, 2022
a318cf2
perf: ⚡️ watching and devserver are now initialzed in parallel
jsimck Feb 18, 2022
7efffbc
fix: 🐛 Fixed forceSPA mode
jsimck Feb 18, 2022
f7f9a59
feat: 🎸 Moved to native webpack CSS
jsimck Feb 18, 2022
10c372d
refactor: 💡 Improved stats output, plugin to cleanup amp output
jsimck Feb 19, 2022
2eec6c3
fix: 🐛 AMP and scrambleCSS plugins bugfixes
jsimck Feb 19, 2022
7682081
fix: 🐛 Fixed logger overlapping newlines issues
jsimck Feb 19, 2022
07b9d29
fix: 🐛 error-overlay and runtime error reporting fixes
jsimck Feb 19, 2022
1f27c9c
fix: 🐛 Re-enabled fast refresh
jsimck Feb 20, 2022
41dfd3d
feat: 🎸 Added reconnecting functionality to hmr client
jsimck Feb 21, 2022
1049c7a
fix: 🐛 Plugin dynamic binding fix
jsimck Feb 21, 2022
39050ee
perf: ⚡️ Removed source-map-loader
jsimck Feb 21, 2022
721469d
fix: 🐛 Fixed eval-source-map middleware runtime error parsing
jsimck Feb 21, 2022
7ae55d1
feat: 🎸 Added experimental swc loader configuration
jsimck Feb 21, 2022
6c6047f
fix: 🐛 Fixed I11 swc config
jsimck Feb 22, 2022
f00c359
fix: 🐛 Reverted mini-css-extract-plugin, native css is optional
jsimck Feb 22, 2022
4a872dc
fix: 🐛 SWC and babel fixes
jsimck Feb 22, 2022
d2462ac
fix: 🐛 Fixed production CSS source maps generation
jsimck Feb 22, 2022
a16c4dd
refactor: 💡 Refactored and cleaned up compile error parsers
jsimck Feb 23, 2022
38a5929
fix: 🐛 Added uknown error filter to hmr client
jsimck Feb 23, 2022
16a68ac
feat: 🎸 Hidden swcMinimizer behind experimental flag
jsimck Feb 24, 2022
9cbe36b
fix: 🐛 Scramble css source map support fix
jsimck Feb 25, 2022
6a41cef
refactor: 💡 removed unwanted zipped package
jsimck Feb 25, 2022
de97e58
chore: 🤖 Updated dependencies
jsimck Feb 27, 2022
a2de968
Merge pull request #167 from seznam/ima-webpack-node-externals
jsimck Feb 27, 2022
c59f100
feat: 🎸 HMR now reloads window after reconnect
jsimck Feb 28, 2022
4e6a911
chore: 🤖 Updated dependencies, lint, stylelint
jsimck Mar 1, 2022
c09565f
chore: 🤖 hoisted dependencies
jsimck Mar 1, 2022
910df86
chore: 🤖 Updated build for core and other packages
jsimck Mar 2, 2022
19b7d9a
refactor: 💡 Removed forceSPAWithHMR option
jsimck Mar 2, 2022
fbb2ab0
chore: 🤖 React 17
jsimck Mar 2, 2022
e5ee4af
style: 💄 ESlint and stylelint fixes
jsimck Mar 2, 2022
637433b
style: 💄 Updated error-overlay styles
jsimck Mar 2, 2022
d528717
fix: 🐛 fixed relative urls in error overlay
jsimck Mar 2, 2022
f928862
feat: 🎸 Added new server 'dev' logger
jsimck Mar 3, 2022
a159037
Merge pull request #169 from seznam/ima-webpack-new-build
jsimck Mar 3, 2022
2c7fe1a
fix: 🐛 Fixed progress plugin
jsimck Mar 3, 2022
df157d4
test: 💍 Fixed server tests
jsimck Mar 3, 2022
9cd2530
test: 💍 Multiple test fixes
jsimck Mar 3, 2022
38354d9
test: 💍 fixed tests
jsimck Mar 4, 2022
b57a985
test: 💍 Fixed core tests
jsimck Mar 4, 2022
7c88a62
chore: 🤖 updated dependencies
jsimck Mar 4, 2022
3cbd018
refactor: 💡 greatly simplified open editor middleware
jsimck Mar 4, 2022
94a53c8
fix: 🐛 Minor error reporting fixes
jsimck Mar 4, 2022
0ec5e08
style: 💄 Removed eslintignore
jsimck Mar 5, 2022
d026521
style: 💄 Updated code style on stylelintrc
jsimck Mar 5, 2022
99828a0
chore: 🤖 Cleaned up package.json deps
jsimck Mar 5, 2022
8e6e22f
style: 💄 Updated package.json meta descriptions
jsimck Mar 5, 2022
c8cf117
test: 💍 benchmark test fixes
jsimck Mar 5, 2022
77859dd
feat: 🎸 Added new @ima/dev-utils package
jsimck Mar 5, 2022
b72298d
refactor: 💡 Moved compile parser dependencies to dev-utils
jsimck Mar 5, 2022
9a69713
refactor: 💡 moved runtimeErrorParser to dev-utils
jsimck Mar 5, 2022
1a23b9c
refactor: 💡 simplified runtime and error parser types
jsimck Mar 5, 2022
dd54e6f
refactor: 💡 Fixed runtime error parsing in ovelay from dev-util
jsimck Mar 5, 2022
12fb741
refactor: 💡 types cleanup
jsimck Mar 5, 2022
f61e2ca
refactor: 💡 WIP error parsers refactoring
jsimck Mar 6, 2022
11624b8
refactor: 💡 Added Server runtime error source map parsing
jsimck Mar 6, 2022
56e7022
refactor: 💡 Removed eval-source-maps support
jsimck Mar 6, 2022
2d3d72b
refactor: 💡 Simplified source map parsing in error overlay
jsimck Mar 6, 2022
8c792f9
refactor: 💡 Removed SourceMap class wrapper
jsimck Mar 6, 2022
5ba039c
refactor: 💡 Migrated error-overlay from react to preact
jsimck Mar 6, 2022
37b9db9
refactor: 💡 Code cleanup
jsimck Mar 7, 2022
2859aa2
refactor: 💡 Migrated from custom runtime error parser to npm
jsimck Mar 7, 2022
ef18660
Merge pull request #171 from seznam/ima-webpack-dev-utils
jsimck Mar 7, 2022
c2724bd
refactor: 💡 resolve conflicts
mjancarik Mar 10, 2022
1d3c519
refactor: 💡 HMR client and error-overlay refactor
jsimck Mar 10, 2022
f9e00b2
refactor: 💡 Renamed public to publicUrl to prevent keyword conf
jsimck Mar 10, 2022
093f329
refactor: 💡 Continuing with overlay refactor
jsimck Mar 10, 2022
cdf2b19
refactor: 💡 Progress backup
jsimck Mar 10, 2022
9ce3d3c
refactor: 💡 Finishing overlay refactor
jsimck Mar 12, 2022
5373f7d
refactor: 💡 Removed old source files from error-overlay
jsimck Mar 12, 2022
2b0d4b7
refactor: 💡 HMR client simplification
jsimck Mar 12, 2022
122322d
refactor: 💡 hmr-client cleanup
jsimck Mar 12, 2022
14476e8
refactor: 💡 HMR client simplification
jsimck Mar 12, 2022
f8e848a
refactor: 💡 tsconfig cleanup
jsimck Mar 12, 2022
6a2c7d0
fix: 🐛 Minor source storage cache fixes)
jsimck Mar 12, 2022
a6437c8
fix: 🐛 Multiple overlay style fixes
jsimck Mar 12, 2022
27d3b56
fix: 🐛 tsconfig fixes
jsimck Mar 12, 2022
b8512eb
fix: 🐛 Fixed server-side runtime errors
jsimck Mar 12, 2022
c9da2f7
fix: 🐛 Reverted back to using mini-css-extract-plugin by defaul
jsimck Mar 13, 2022
7e95183
fix: 🐛 css modules build fixes
jsimck Mar 13, 2022
dd93463
fix: 🐛 Dev logger fixes
jsimck Mar 13, 2022
2c7cbab
fix: 🐛 Fixed doubling of runtime errors
jsimck Mar 13, 2022
3554457
fix: 🐛 Fix HMR disconnect on controller error
jsimck Mar 13, 2022
f59d7ab
refactor: 💡 Some minor code style fixes
jsimck Mar 13, 2022
eea28d7
Merge pull request #172 from seznam/ima-webpack-overlay-component
jsimck Mar 13, 2022
81ae9cd
feat: 🎸 Added ErrorBoundary and fixed HMR error reporting
jsimck Mar 13, 2022
6c0f0cf
fix: 🐛 Track unique errors before logging
jsimck Mar 13, 2022
4e2af71
refactor: 💡 Removed .min suffixes from production builds
jsimck Mar 13, 2022
a76f1cc
fix: 🐛 Fixed lengthy server error processing
jsimck Mar 13, 2022
ee5b74a
refactor: 💡 Moved devApp.js script to utils/dev-app
jsimck Mar 13, 2022
ff2276f
feat: 🎸 Better cache busting in default create-ima-app template
jsimck Mar 13, 2022
7e9b28b
feat: 🎸 Better server init app errors handling
jsimck Mar 13, 2022
3dbbe1f
fix: 🐛 Fixed package dependencies
jsimck Mar 13, 2022
578881d
fix: 🐛 Correct npm registry in package-lock
jsimck Mar 14, 2022
c60b49a
test: 💍 Tests fixes
jsimck Mar 14, 2022
e05d835
fix: 🐛 Added misssing template dependency
jsimck Mar 14, 2022
7743870
fix: 🐛 Benchmark fix
jsimck Mar 14, 2022
1576f66
test: 💍 Test fixes
jsimck Mar 14, 2022
f0cdbbe
feat: 🎸 Updated verdacio
jsimck Mar 14, 2022
8e94e8f
fix: 🐛 Fix peer deps in benchmark
jsimck Mar 14, 2022
600731c
refactor: 💡 CR fixes
jsimck Mar 14, 2022
36dd536
refactor: 💡 CR fixes
jsimck Mar 14, 2022
24f3607
fix: 🐛 Verdacio fix take 4
jsimck Mar 14, 2022
c1709ff
fix: 🐛 Verdacio fix
jsimck Mar 14, 2022
382406a
refactor: 💡 CR fixes
jsimck Mar 14, 2022
437470a
refactor: 💡 CR fixes
jsimck Mar 14, 2022
0a77531
refactor: 💡 Benchmark debug
jsimck Mar 14, 2022
0ab9dac
refactor: 💡 CR fixes
jsimck Mar 14, 2022
d7d1f20
refactor: 💡 CR fixes
jsimck Mar 14, 2022
8994b3e
refactor: 💡 CR fixes
jsimck Mar 14, 2022
2b31d16
refactor: 💡 CR fixees
jsimck Mar 14, 2022
26c1c78
fix: 🐛 Fixed SWC error parser
jsimck Mar 14, 2022
c3d6ce1
fix: 🐛 updated packagelocks
jsimck Mar 14, 2022
db5862f
fix: 🐛 removed gsed in benchmark
jsimck Mar 14, 2022
107ac2d
fix: 🐛 fixed build
jsimck Mar 14, 2022
26f9e75
fix: 🐛 swc compile error parser
jsimck Mar 14, 2022
ce3128f
Merge remote-tracking branch 'origin/next' into ima-webpack-merge
jsimck Mar 15, 2022
88f1aee
Merge pull request #173 from seznam/ima-webpack-merge
jsimck Mar 15, 2022
350902f
test: 💍 HttpProxy test fixes
jsimck Mar 16, 2022
fde0920
refactor: 💡 renamed jest.conf.js to jest.config.js (to spec)
jsimck Mar 16, 2022
b792b89
test: 💍 Fixed devtools tests
jsimck Mar 16, 2022
e199ac1
chore: 🤖 Fixed package-lock versions
jsimck Mar 16, 2022
37e5f25
test: 💍 Dynamic plugin init methods tests
jsimck Mar 16, 2022
c92383f
test: 💍 Added PluginLoader tests
jsimck Mar 16, 2022
7434ee1
chore: 🤖 npm 8, workspaces and dependencies cleanup preparation
jsimck Mar 17, 2022
b8538ac
chore: 🤖 Added turborepo
jsimck Mar 17, 2022
6a41d02
chore: 🤖 Updated package-lock for workspaces
jsimck Mar 18, 2022
8d583d3
chore: 🤖 Dependency cleanup
jsimck Mar 18, 2022
d13ce75
chore: 🤖 Hoisted rollup deps to root
jsimck Mar 19, 2022
d103c7f
chore: 🤖 Generalized rollup config
jsimck Mar 19, 2022
0a4ef17
chore: 🤖 Dependencies cleanup
jsimck Mar 19, 2022
73f3c76
Merge pull request #107 from seznam/ima-webpack
mjancarik Apr 2, 2022
ad9e1a5
test: 💍 HttpProxy test fixes
jsimck Mar 16, 2022
25fc757
refactor: 💡 renamed jest.conf.js to jest.config.js (to spec)
jsimck Mar 16, 2022
957b06e
test: 💍 Fixed devtools tests
jsimck Mar 16, 2022
5114223
chore: 🤖 Fixed package-lock versions
jsimck Mar 16, 2022
9297552
test: 💍 Dynamic plugin init methods tests
jsimck Mar 16, 2022
1afb432
test: 💍 Added PluginLoader tests
jsimck Mar 16, 2022
bf8f7f6
fix: 🐛 Fixed handleError issues and incorrect dependencies
jsimck Apr 4, 2022
cbdddc8
fix: 🐛 Fixed incorrect error handling in services.js
jsimck Apr 4, 2022
b38b174
chore: 🤖 Added ajv to cli deps for now until peers are fixed
jsimck Apr 4, 2022
1c44f58
chore: 🤖 resolve conflicts
mjancarik Apr 4, 2022
a25d283
chore: 🤖 missing deps
jsimck Apr 4, 2022
8dc10a1
Merge pull request #175 from seznam/ima-webpack-workspaces
mjancarik Apr 6, 2022
53832c7
fix: broken test infrastructure for new create-ima-app apps (#183)
mjancarik Apr 8, 2022
bc5a73e
fix: 🐛 Fixed broken types in CLI package
jsimck Apr 8, 2022
12687a5
Merge pull request #190 from seznam/cli-types-fix
jsimck Apr 8, 2022
35f4f87
chore: 🤖 Devtools cleanup, generalized build process (#189)
jsimck May 3, 2022
1c42f0d
refactor: 💡 Removed unused svg features and minify defaults (#201)
jsimck May 11, 2022
2cfc5a9
chore: 🤖 Rewritten create-ima-app to esm, dropped feed and todo examp…
jsimck May 16, 2022
803d577
refactor: 💡 $IMA.Runner refactor (#194)
jsimck May 20, 2022
c34d08e
chore: 🤖 Reworked dev utility script (#203)
jsimck May 20, 2022
a7f41ef
chore(release): publish
mjancarik May 26, 2022
97a5568
chore: 🤖 update peer dependencies
mjancarik May 26, 2022
ce39f1e
chore: 🤖 fix lerna publish with automation npm token
Filipoliko May 27, 2022
bd1166a
chore: 🤖 publish from-package
Filipoliko May 27, 2022
23b9e77
chore: 🤖 release rc versions as next tag in npm registry
Filipoliko May 27, 2022
fe6af03
fix: 🐛 Fixed PostCSS webpack plugins source maps handling (#209)
jsimck May 31, 2022
0e8ba96
fix: 🐛 Fixed issue with displaying compile errors in overlay (#210)
jsimck May 31, 2022
8847e40
Merge branch 'next' of github.com:seznam/ima into next
Filipoliko Jun 1, 2022
932b6ca
chore: 🤖 Fixed benchmark test
jsimck Jun 19, 2022
f2356e7
chore: 🤖 Turbo build
jsimck Jun 19, 2022
db1b54a
chore: 🤖 another benchmark test
jsimck Jun 19, 2022
577369f
chore: 🤖 npmignore changes
jsimck Jun 19, 2022
b8b4b90
Merge pull request #215 from seznam/benchmark-fix
jsimck Jun 19, 2022
69df0a3
feat: 🎸 Node 18 native fetch support (#212)
jsimck Jun 20, 2022
3790164
feat: 🎸 Kill already running app on the same port before launch (#213)
jsimck Jun 20, 2022
0df7b58
refactor: 💡 Rewritten helpers to esm modules (#214)
jsimck Jun 20, 2022
2aec3e4
chore(release): publish
mjancarik Jun 21, 2022
8fa0c5b
fix: 🐛 Removed rogue console.log
jsimck Jun 21, 2022
8902176
chore(release): publish
mjancarik Jun 21, 2022
738330a
feat: 🎸 Add support for react testing library with shallow rendering
Filipoliko Jun 24, 2022
0d788ab
fix: update shallow library to fix shallow rendering
Filipoliko Jun 24, 2022
b022bc7
fix: update shallow library to fix shallow rendering
Filipoliko Jun 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 0 additions & 12 deletions .eslintignore

This file was deleted.

93 changes: 88 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
module.exports = {
root: true,
ignorePatterns: [
'**/node_modules/**',
'**/dist/**',
'**/docs/**',
'**/coverage/**',
'packages/create-ima-app/examples/todos/assets/**',
],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:jest/recommended',
'plugin:jest/style',
'plugin:prettier/recommended',
],
rules: {
// Eslint overrides
'no-import-assign': 0,
'no-console': [
'error',
{
Expand Down Expand Up @@ -50,7 +56,7 @@ module.exports = {
},
settings: {
react: {
version: '16',
version: '17',
},
},
parser: '@babel/eslint-parser',
Expand All @@ -75,16 +81,93 @@ module.exports = {
spyOn: true,
},
overrides: [
// TODO IMA@18 Enable repo-wide when merged to master
// Import plugin
{
files: [
'packages/cli/**',
'packages/devtools/**',
'packages/devtools-scripts/**',
'packages/hmr-client/**',
'packages/error-overlay/**',
'packages/dev-utils/**',
],
extends: ['plugin:import/recommended'],
rules: {
'import/no-unresolved': ['warn', { ignore: ['^@\\/'] }], // ignore @/* aliases
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal'],
pathGroups: [
{
pattern: '{preact|react|svelte}{/**,**}',
group: 'external',
position: 'before',
},
{
pattern: '@/**',
group: 'internal',
position: 'after',
},
{
pattern: '*.{css,less,json,html,txt,csv,png,jpg,svg}',
group: 'object',
patternOptions: { matchBase: true },
position: 'after',
},
],
'newlines-between': 'always',
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.ts', '.jsx', '.tsx', '.mjs', '.json'],
},
},
},
},
// Typescript support
{
files: ['**/*.{ts,tsx}'],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
extends: ['plugin:@typescript-eslint/recommended'],
rules: {
'@typescript-eslint/ban-ts-comment': [
'error',
{ 'ts-expect-error': 'allow-with-description' },
],
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-namespace': [
'error',
{ allowDeclarations: true },
],
},
},
// Other overrides
{
files: ['packages/cli/**', 'packages/create-ima-app/**'],
files: [
'packages/cli/**',
'packages/dev-utils/**',
'packages/create-ima-app/**',
],
rules: {
'no-console': 'off',
},
},
{
files: ['packages/devtools/**', 'packages/create-ima-app/**'],
rules: {
'no-unused-vars': 'off',
'no-unused-vars': 'warn',
},
globals: {
chrome: true,
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ out/
lerna-debug.log
.DS_Store
.idea
.history
.turbo
jsconfig.json
ima-app
storage
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

Loading