Skip to content

Commit

Permalink
Bring back recommended linting
Browse files Browse the repository at this point in the history
Since the last update of c-r-a, some recommended linting rules were lost
and are now brought back.
  • Loading branch information
longsleep committed Jan 8, 2021
1 parent fa36936 commit d683217
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
},
"plugins": ["@calm/react-intl", "i18n-text"],
"extends": ["react-app", "react-app/jest", "plugin:jest/recommended"],
"extends": ["eslint:recommended", "react-app", "react-app/jest", "plugin:react/recommended", "plugin:jest/recommended"],
"settings": {
"react": {
"version": "detect"
Expand Down
6 changes: 5 additions & 1 deletion src/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const Routes = ({ authenticated, auto }) => (

Routes.propTypes = {
authenticated: PropTypes.bool.isRequired,
auto: PropTypes.object,
};

function RouteFirstRoute(props) {
Expand Down Expand Up @@ -96,13 +97,16 @@ function AuthenticatedRouteFirstRouteRedirect({ component: C, authenticated, pro
: A !== undefined ? <A {...props}/> : null;
}}
/>;
};
}

AuthenticatedRouteFirstRouteRedirect.propTypes = {
component: PropTypes.elementType.isRequired,
alternative: PropTypes.elementType,
authenticated: PropTypes.bool.isRequired,
props: PropTypes.object,
auto: PropTypes.object,
match: PropTypes.object,
location: PropTypes.object,
};


Expand Down

0 comments on commit d683217

Please sign in to comment.