Skip to content

Commit

Permalink
update eslint version
Browse files Browse the repository at this point in the history
  • Loading branch information
jguevarra committed Feb 6, 2024
1 parent e94022e commit 8b663a1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
17 changes: 13 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parserOptions": {
"ecmaVersion": 2018,
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
Expand All @@ -11,9 +11,18 @@
],
"rules": {
"semi": "error",
"quotes": ["error", "single"],
"jsx-quotes": ["error", "prefer-single"],
"arrow-body-style": ["error", "as-needed"],
"quotes": [
"error",
"single"
],
"jsx-quotes": [
"error",
"prefer-single"
],
"arrow-body-style": [
"error",
"as-needed"
],
"indent": [
"error",
2,
Expand Down
2 changes: 1 addition & 1 deletion src/app-bundles/auth-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default {

selectAuthData: state => state.auth.authData,

selectUserRole: state => state.auth.authData.role,
selectUserRole: state => state.auth?.authData?.role,

selectInitOptions: state => state.auth.initOptions,

Expand Down

0 comments on commit 8b663a1

Please sign in to comment.