Skip to content

Commit

Permalink
πŸš€ Release/1.3.0 (#204)
Browse files Browse the repository at this point in the history
πŸš€ Release/1.3.0
  • Loading branch information
yjkwon07 authored Jun 28, 2022
2 parents d32941f + e9c6c51 commit cbb0fbe
Show file tree
Hide file tree
Showing 96 changed files with 35,168 additions and 10,664 deletions.
13 changes: 10 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const path = require('path')

module.exports = {
root: true,
extends: ['react-app', 'plugin:prettier/recommended'],
plugins: ['react-hooks', 'import', 'prettier'],
extends: ['eslint:recommended', 'plugin:react/recommended', 'eslint-config-prettier', 'plugin:prettier/recommended'],
plugins: ['react', 'react-hooks', 'import', 'prettier'],
env: {
browser: true,
node: true,
Expand Down Expand Up @@ -37,6 +37,8 @@ module.exports = {
},
},
rules: {
'react/prop-types': [0],
'no-unused-vars': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn', // Checks effect dependencies
'import/order': [
Expand All @@ -58,6 +60,11 @@ module.exports = {
},
},
],
'prettier/prettier': 'error',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/node_modules
/.pnp
.pnp.js
.eslintcache

# testing
/coverage
Expand All @@ -25,3 +26,4 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
rest.http

7 changes: 5 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@
},
"cSpell.words": [
"favorited",
"getcontentanchorel",
"Glogin",
"Gregister",
"Nlogin",
"Nregister",
"Glogin",
"pageview"
"pageview",
"scrollmagic",
"Spoqa"
],
}
31 changes: 18 additions & 13 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,13 @@ const path = require('path')

const { whenDev, whenProd } = require('@craco/craco')
const CracoAlias = require('craco-alias')
const CracoEsbuildPlugin = require('craco-esbuild')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ProgressBarPlugin = require('progress-bar-webpack-plugin')
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
const ManifestPlugin = require('webpack-manifest-plugin')

module.exports = {
babel: {
presets: [
[
'@babel/preset-env',
{
targets: {
chrome: '55',
},
},
],
],
},

webpack: {
configure: (webpackConfig, { paths }) => {
// multiple entry point config
Expand Down Expand Up @@ -93,10 +82,13 @@ module.exports = {
whenDev(() => {
webpackConfig.optimization.runtimeChunk = 'single'
webpackConfig.plugins.push(new BundleAnalyzerPlugin({ analyzerMode: 'server', openAnalyzer: false }))
webpackConfig.devtool = 'eval-cheap-module-source-map'
})

whenProd(() => {
webpackConfig.plugins.push(new BundleAnalyzerPlugin({ analyzerMode: 'static' }))
webpackConfig.plugins.push(new ProgressBarPlugin())
webpackConfig.devtool = false
})

return webpackConfig
Expand All @@ -111,5 +103,18 @@ module.exports = {
baseUrl: './src',
},
},
{
plugin: CracoEsbuildPlugin,
options: {
esbuildLoaderOptions: {
loader: 'jsx',
target: 'es2015',
},
esbuildMinimizerOptions: {
target: 'es2015',
css: true,
},
},
},
],
}
Loading

0 comments on commit cbb0fbe

Please sign in to comment.