Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: lint issues #1427

Merged
merged 2 commits into from
Dec 12, 2023
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
4 changes: 2 additions & 2 deletions src/entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { nexus, history } from './store';
import App from './shared/App';

function EntryPoint() {
const EntryPoint = () => {
const queryClient = useRef(new QueryClient());
const notificationData: NotificationContextType = getNotificationContextValue();

Expand All @@ -26,6 +26,6 @@ function EntryPoint() {
</QueryClientProvider>
</NotificationContext.Provider>
);
}
};

export default EntryPoint;
4 changes: 2 additions & 2 deletions src/shared/modals/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import CreateOrganization from './CreateOrganization/CreateOrganization';
import CreateStudio from './CreateStudio/CreateStudio';
import { RootState } from '../store/reducers';

function EntityCreation() {
const EntityCreation = () => {
const oidc = useSelector((state: RootState) => state.oidc);
const authenticated = !!oidc.user;
const token = oidc.user && oidc.user.access_token;
Expand All @@ -20,6 +20,6 @@ function EntityCreation() {
</React.Fragment>
)
);
}
};

export default EntityCreation;
4 changes: 3 additions & 1 deletion src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { createNexusClient } from '@bbp/nexus-sdk/es';
import defaultState from './defaultState';
import { SEARCH_PREFENCE_LOCAL_STORAGE_KEY } from './shared/store/actions/search';

let preferredRealm, searchPrefenceLocalStorag;
let preferredRealm;
let searchPrefenceLocalStorag;

try {
const realmData = JSON.parse(localStorage.getItem('nexus__realm') || '');
realmData && (preferredRealm = realmData.label);
Expand Down
3 changes: 2 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"react-helmet": "Helmet"
}
],
"variable-name": [true, "allow-pascal-case"]
"variable-name": [true, "allow-pascal-case"],
"no-parameter-reassignment": false
}
}
Loading