feat: setup eslint at root level (#27)

* feat: setup eslint at root level

* chore: disable craco eslint-plugin

* fix: add missing extension to import

* fix: apply review

* chore: use gitignore to exclude files from eslint

* chore: disable eslint step in craco via config rather than env variable

* chore: remove npmrc

* chore: remove `eslint-plugin-react` override
This commit is contained in:
Marco Pasqualetti authored and GitHub committed 2026-01-21 22:48:08 +01:00
1 parent 74b314ab0f
commit dff4bfcecb
30 files changed
+352 -501

No files matched your search

-1
View File
@@ -7,7 +7,6 @@ const initialState = {
privateAccess: null,
};
// eslint-disable-next-line default-param-last
export default (state = initialState, action) => {
switch (action.type) {
case types.LOGIN:
+6 -2
View File
@@ -4,7 +4,11 @@ import loggerMiddleware from "./logger";
import rootReducer from "./reducers";
import { USE_LOGGER } from "../constants";
export default function configureStore(intialState) {
/**
* @param {unknown?} initialState store initial state
* @returns {import('redux').Store} store
*/
export default function configureStore(initialState) {
let middlewares = [];
if (USE_LOGGER) {
middlewares = [loggerMiddleware];
@@ -14,7 +18,7 @@ export default function configureStore(intialState) {
const enhancers = [middlewareEnhancer];
const composedEnhancers = compose(...enhancers);
const store = createStore(rootReducer, intialState, composedEnhancers);
const store = createStore(rootReducer, initialState, composedEnhancers);
return store;
}