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

Task: Migrate from webpack v4 to webpack v5 #1395

Merged
merged 57 commits into from
Feb 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
ccdbe8c
update plugins and loaders
ElinorW Jan 26, 2022
e12dcef
update react dev utils
ElinorW Jan 26, 2022
278f61f
add FixFormatter plugin
ElinorW Jan 27, 2022
ea9ff9d
update fork-ts package
ElinorW Jan 27, 2022
412bda7
fix json parsing errors
ElinorW Jan 27, 2022
d095145
add eslint-webpack-plugin
ElinorW Jan 28, 2022
980aeca
update react-dev-utils
ElinorW Jan 28, 2022
fc74c33
update eslint config
ElinorW Jan 31, 2022
1b3c307
fix linting errors
ElinorW Jan 31, 2022
7c39260
remove unsupported plugin
ElinorW Jan 31, 2022
744b276
remove caret
ElinorW Jan 31, 2022
b637ccc
update webpack config file
ElinorW Jan 31, 2022
7b32de0
update node-sass package
ElinorW Jan 31, 2022
8e6bed2
update webpack-config
ElinorW Jan 31, 2022
99d3656
downgarde node-sass and upgrade webpack-dev-server
ElinorW Feb 1, 2022
076900b
remove close function
ElinorW Feb 1, 2022
e7216da
update webpack dev server settings
ElinorW Feb 1, 2022
9779878
update webpack config settings
ElinorW Feb 1, 2022
ad9ea82
update build info path
ElinorW Feb 1, 2022
d7bba68
update vulnerable dependencies
ElinorW Feb 1, 2022
bcc5338
add babel/runtime dependency
ElinorW Feb 1, 2022
dc88499
configure babel to use relative path
ElinorW Feb 1, 2022
060bda6
update Workbox options
ElinorW Feb 1, 2022
7052d9d
Merge remote-tracking branch 'origin/task/update-dependencies-2' into…
ElinorW Feb 1, 2022
9dc9b32
update babel-preset-react-app
ElinorW Feb 2, 2022
56541c5
adding babel-preset for webpack 5
ElinorW Feb 2, 2022
8df8bd9
update babel packages and settings
ElinorW Feb 2, 2022
7e40305
add new rule
ElinorW Feb 2, 2022
73cb32a
rename babel config file
ElinorW Feb 2, 2022
fc90def
add runtime preset
ElinorW Feb 2, 2022
2a90028
Merge branch 'dev' into task/update-dependencies-2
ElinorW Feb 2, 2022
26397f2
Update linter.yml
ElinorW Feb 2, 2022
69bfc54
Update azure-static-web-apps-jolly-sand-0ac78c710.yml
ElinorW Feb 2, 2022
38416a1
increase cache size
ElinorW Feb 2, 2022
7545f53
Merge branch 'task/update-dependencies-2' of https://github.com/micro…
ElinorW Feb 2, 2022
fd2b402
remove coverage path fix to invoke path error
Onokaev Feb 4, 2022
b0518ca
test coverage with unix environment
Onokaev Feb 4, 2022
a99888d
refactor sonar analysis to a separate workflow
Onokaev Feb 4, 2022
af9bbba
refactor sonarcloud to workflows directory
Onokaev Feb 4, 2022
3d2ae1c
revert to the original linter workflow
Onokaev Feb 4, 2022
9886015
Update azure-static-web-apps-jolly-sand-0ac78c710.yml
ElinorW Feb 4, 2022
3252236
Update linter.yml
ElinorW Feb 4, 2022
897ddfb
update webpack config file
ElinorW Feb 4, 2022
6f013e1
update eslint packages
ElinorW Feb 7, 2022
98b1c2f
update import
ElinorW Feb 9, 2022
f45a078
update errors
ElinorW Feb 9, 2022
919dffc
add localization
ElinorW Feb 15, 2022
98ccb6c
update @typescript-eslint packages
ElinorW Feb 15, 2022
3b67686
Merge branch 'dev' into task/update-dependencies-2
ElinorW Feb 15, 2022
1988c2f
remove try...catch
ElinorW Feb 16, 2022
a1b3760
Merge branch 'dev' into task/update-dependencies-2
ElinorW Feb 16, 2022
b4cef78
remove unused import
ElinorW Feb 16, 2022
b1982ff
Merge branch 'task/update-dependencies-2' of https://github.com/micro…
ElinorW Feb 16, 2022
bfe87d9
remove unused string
ElinorW Feb 16, 2022
3d4eab3
display error message
thewahome Feb 17, 2022
9646020
remove plugin
ElinorW Feb 17, 2022
9a99d1e
remove commented code
ElinorW Feb 17, 2022
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
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

40 changes: 20 additions & 20 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ module.exports = {
env: {
browser: true,
es6: true,
node: true,
node: true
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/eslint-recommended'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
SharedArrayBuffer: 'readonly'
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
createDefaultProgram: true,
ecmaVersion: 6,
sourceType: 'module',
sourceType: 'module'
},
plugins: ['react', '@typescript-eslint'],
rules: {
Expand All @@ -30,8 +30,8 @@ module.exports = {
'@typescript-eslint/explicit-member-accessibility': [
'off',
{
accessibility: 'explicit',
},
accessibility: 'explicit'
}
],
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/interface-name-prefix': 'off',
Expand All @@ -40,13 +40,13 @@ module.exports = {
{
multiline: {
delimiter: 'none',
requireLast: true,
requireLast: true
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
requireLast: false
}
}
],
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/no-empty-function': 'error',
Expand All @@ -58,17 +58,17 @@ module.exports = {
'@typescript-eslint/no-unused-expressions': [
'error',
{
allowShortCircuit: true,
},
allowShortCircuit: true
}
],
'@typescript-eslint/no-unused-vars': [
'warn',
{
args: 'after-used',
argsIgnorePattern: '^_',
ignoreRestSiblings: false,
vars: 'all',
},
vars: 'all'
}
],
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-var-requires': 'off',
Expand Down Expand Up @@ -121,8 +121,8 @@ module.exports = {
'@typescript-eslint/no-shadow': [
'warn',
{
hoist: 'all',
},
hoist: 'all'
}
],
'no-throw-literal': 'error',
'no-trailing-spaces': 'warn',
Expand All @@ -147,11 +147,11 @@ module.exports = {
}],
'spaced-comment': 'off',
'use-isnan': 'error',
'valid-typeof': 'off',
'valid-typeof': 'off'
},
settings: {
react: {
version: 'detect',
},
},
version: 'detect'
}
}
};
5 changes: 5 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"@babel/preset-env"
]
}
3 changes: 2 additions & 1 deletion config/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ module.exports = {
proxySetup: resolveApp('src/setupProxy.js'),
appNodeModules: resolveApp('node_modules'),
publicUrl: getPublicUrl(resolveApp('package.json')),
servedPath: getServedPath(resolveApp('package.json'))
servedPath: getServedPath(resolveApp('package.json')),
appTsBuildInfoFile: resolveApp('node_modules/.cache/tsconfig.tsbuildinfo')
};


Expand Down
Loading