Skip to content

Commit

Permalink
fix: revert to react-scripts 4.0.3 (for uppy)
Browse files Browse the repository at this point in the history
See transloadit/uppy#3376

BREAKING CHANGES
  • Loading branch information
swouf committed Mar 21, 2022
1 parent 5198eb8 commit e1cf13d
Show file tree
Hide file tree
Showing 5 changed files with 5,608 additions and 3,034 deletions.
8 changes: 2 additions & 6 deletions .eslintrc
Expand Up @@ -18,10 +18,7 @@
"cy": true,
"Cypress": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false
},
"parser": "babel-eslint",
"rules": {
"no-underscore-dangle": [
"error",
Expand All @@ -46,9 +43,8 @@
"extensions": [".js", ".jsx"]
}
],
"react/jsx-no-constructed-context-values": ["warn"],
"react/function-component-definition": ["warn", {"namedComponents": "arrow-function"}],
"react/static-property-placement": ["error", "static public field"],
"react/function-component-definition": ["warn", "arrow-function"],
"jsx-a11y/click-events-have-key-events": ["warn"],
"jsx-a11y/mouse-events-have-key-events": ["warn"],
"import/no-named-as-default": 0
Expand Down
123 changes: 123 additions & 0 deletions docs/update.md
@@ -0,0 +1,123 @@
### Update

.eslintrc

`
{
"extends": [
"airbnb",
"prettier"
],
"plugins": [
"import",
"jsx-a11y",
"react"
],
"env": {
"browser": true,
"node": true,
"mocha": true,
"jest": true
},
"globals": {
"cy": true,
"Cypress": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false
},
"rules": {
"no-underscore-dangle": [
"error",
{
"allow": [
"_id",
"__REDUX_DEVTOOLS_EXTENSION__"
]
}
],
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to", "hrefLeft", "hrefRight"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
],
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"react/jsx-no-constructed-context-values": ["warn"],
"react/function-component-definition": ["warn", {"namedComponents": "arrow-function"}],
"react/static-property-placement": ["error", "static public field"],
"jsx-a11y/click-events-have-key-events": ["warn"],
"jsx-a11y/mouse-events-have-key-events": ["warn"],
"import/no-named-as-default": 0
}
}{
"extends": [
"airbnb",
"prettier"
],
"plugins": [
"import",
"jsx-a11y",
"react"
],
"env": {
"browser": true,
"node": true,
"mocha": true,
"jest": true
},
"globals": {
"cy": true,
"Cypress": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false
},
"rules": {
"no-underscore-dangle": [
"error",
{
"allow": [
"_id",
"__REDUX_DEVTOOLS_EXTENSION__"
]
}
],
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to", "hrefLeft", "hrefRight"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
],
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"react/jsx-no-constructed-context-values": ["warn"],
"react/function-component-definition": ["warn", {"namedComponents": "arrow-function"}],
"react/static-property-placement": ["error", "static public field"],
"jsx-a11y/click-events-have-key-events": ["warn"],
"jsx-a11y/mouse-events-have-key-events": ["warn"],
"import/no-named-as-default": 0
}
}
`

package.json

`
"react-scripts": "~5.0.0",
`
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -12,7 +12,7 @@
"license": "AGPL-3.0-only",
"dependencies": {
"@graasp/apps-query-client": "github:graasp/graasp-apps-query-client.git#18/appSettings",
"@graasp/ui": "github:graasp/graasp-ui.git#100/itemClassname",
"@graasp/ui": "github:graasp/graasp-ui.git",
"@material-ui/core": "4.12.3",
"@material-ui/icons": "4.11.2",
"@material-ui/lab": "4.0.0-alpha.60",
Expand All @@ -34,7 +34,7 @@
"react-dom": "~17.0.2",
"react-ga": "~3.3.0",
"react-i18next": "~11.15.6",
"react-scripts": "~5.0.0",
"react-scripts": "~4.0.3",
"react-toastify": "~8.2.0",
"stopword": "~2.0.1"
},
Expand All @@ -61,9 +61,9 @@
"release": "git fetch --tags && git add CHANGELOG.md && standard-version -a"
},
"devDependencies": {
"@babel/eslint-parser": "~7.17.0",
"@commitlint/cli": "~16.2.1",
"@commitlint/config-conventional": "~16.2.1",
"babel-eslint": "10.1.0",
"codacy-coverage": "3.4.0",
"cross-env": "7.0.3",
"cypress": "~9.5.1",
Expand Down
1 change: 1 addition & 0 deletions src/components/main/Canvas.js
Expand Up @@ -92,6 +92,7 @@ const Canvas = () => {

/* The <div> element has a child <button> element that allows keyboard interaction */
return (
/* eslint-disable-next-line react/jsx-no-constructed-context-values */
<CanvasContext.Provider value={{
noteBeingEditedId,
setNoteBeingEditedId,
Expand Down

0 comments on commit e1cf13d

Please sign in to comment.