Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
}]
},
"settings": {
"react": {
"version": "detect"
},
"import/core-modules": [
// This is a workaround for: https://github.com/benmosher/eslint-plugin-import/issues/793
"redux-saga/effects",
Expand Down
2 changes: 2 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
.*/node_modules/stylelint
.*/node_modules/@snyk/composer-lockfile-parser/.*
.*/node_modules/resolve
.*/node_modules/hermes-estree/.*
.*/node_modules/hermes-parser/.*

[include]

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
"css-loader": "^7.1.2",
"css-minimizer-webpack-plugin": "^7.0.2",
"eslint": "^8.57.0",
"eslint-config-amo": "^5.10.0",
"eslint-config-amo": "^6.1.0",
"eslint-plugin-amo": "^2.3.0",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-react": "^7.37.5",
Expand Down
1 change: 1 addition & 0 deletions src/amo/utils/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export function render404IfConfigKeyIsFalse(
throw new TypeError('configKey cannot be empty');
}

// eslint-disable-next-line react/display-name
return (Component: React.ComponentType<any>) => (props: mixed) => {
if (!_config.get(configKey)) {
log.debug(
Expand Down
Loading