-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DUOS-1060[risk=no] Upgrade to Babel 7, React 17, and react-scripts 4 (#…
…915) * DUOS-1060 eslint/babel setup complete, need to move assets to src folder for webpack bundling * DUOS-1060 babel/eslint config setup, warning placed on specific rulesets, resolved rule violations, currently updating src attributes to use imported images rather than strings, updated to react 17 * DUOS-1060 swapped out src link assignment with equivalent import statements and variable references for webpack * DUOS-1060 used explicit versions for react and react-dom * DUOS-1060 removed react-scripts installation (listed as dependency, should be installed alongside npm install) * DUOS-1060 corrected function call on getInputProps * DUOS-1060 removed inquirer dependency, no longer used by react-scripts
- Loading branch information
Showing
135 changed files
with
7,306 additions
and
5,872 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"presets": ["@babel/preset-react"], | ||
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-syntax-jsx"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,47 @@ | ||
{ | ||
"extends": "react-app", | ||
"parser": "babel-eslint", | ||
"extends": ["eslint:recommended", "plugin:react/recommended"], | ||
"parser": "@babel/eslint-parser", | ||
"env": { | ||
"node": true, | ||
"es6": true, | ||
"browser": true | ||
}, | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@babel"], | ||
"rules": { | ||
"no-trailing-spaces": "warn", | ||
"no-unreachable": "warn", | ||
"no-console": "warn", | ||
"array-bracket-spacing": "warn", | ||
"no-unused-vars": "warn", | ||
"no-extra-semi": "warn", | ||
"react/jsx-filename-extension": [ | ||
1, | ||
{ | ||
"extensions": [ | ||
".js", | ||
".jsx" | ||
".js", ".jsx" | ||
] | ||
} | ||
], | ||
"react/prop-types": "off", | ||
"indent": [ | ||
"warn", | ||
2, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"implicit-arrow-linebreak": "off", | ||
"array-bracket-newline": "off", | ||
"brace-style": "off", | ||
"no-trailing-spaces": "warn", | ||
"semi": "warn", | ||
"no-unreachable": "warn", | ||
"no-await-in-loop": "warn", | ||
"no-console": "warn", | ||
"array-bracket-spacing": "warn" | ||
"@babel/implicit-arrow-linebreak": "off", | ||
"@babel/array-bracket-newline": "off", | ||
"@babel/brace-style": "off", | ||
"@babel/semi": "warn" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,6 @@ COPY public /usr/src/app/public | |
COPY package.json /usr/src/app/package.json | ||
COPY config/base_config.json /usr/src/app/public/config.json | ||
RUN npm install --silent | ||
RUN npm install [email protected] -g --silent | ||
RUN npm run build --silent | ||
|
||
FROM nginxinc/nginx-unprivileged:1.19.7-alpine | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.