fix: moves zustand devtools from devDeps to deps (solves linting issue)

This commit is contained in:
Mark Mankarious
2023-08-08 11:32:28 +01:00
parent ad78b524b5
commit cd70da3a27
4 changed files with 4 additions and 8 deletions

6
package-lock.json generated
View File

@@ -22,6 +22,7 @@
"react-hook-form": "^7.43.2",
"react-quill": "^2.0.0",
"react-router-dom": "^6.8.1",
"simple-zustand-devtools": "^1.1.0",
"uuid": "^9.0.0",
"zod": "^3.20.6",
"zustand": "^4.3.3"
@@ -58,7 +59,6 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"recharts": "^2.7.2",
"simple-zustand-devtools": "^1.1.0",
"style-loader": "^3.3.3",
"svg-url-loader": "^8.0.0",
"ts-jest": "^29.0.5",
@@ -2844,7 +2844,6 @@
"version": "18.0.11",
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.11.tgz",
"integrity": "sha512-O38bPbI2CWtgw/OoQoY+BRelw7uysmXbWvw3nLWO21H1HSh+GOlqPuXshJfjmpNlKiiSDG9cc1JZAaMmVdcTlw==",
"dev": true,
"dependencies": {
"@types/react": "*"
}
@@ -12742,7 +12741,6 @@
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/simple-zustand-devtools/-/simple-zustand-devtools-1.1.0.tgz",
"integrity": "sha512-Axfcfr9L3YL3kto7aschCQLY2VUlXXMnIVtaTe9Y0qWbNmPsX/y7KsNprmxBZoB0pww5ZGs1u/ohcrvQ3tE6jA==",
"dev": true,
"peerDependencies": {
"@types/react": ">=18.0.0",
"@types/react-dom": ">=18.0.0",
@@ -16711,7 +16709,6 @@
"version": "18.0.11",
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.11.tgz",
"integrity": "sha512-O38bPbI2CWtgw/OoQoY+BRelw7uysmXbWvw3nLWO21H1HSh+GOlqPuXshJfjmpNlKiiSDG9cc1JZAaMmVdcTlw==",
"dev": true,
"requires": {
"@types/react": "*"
}
@@ -24078,7 +24075,6 @@
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/simple-zustand-devtools/-/simple-zustand-devtools-1.1.0.tgz",
"integrity": "sha512-Axfcfr9L3YL3kto7aschCQLY2VUlXXMnIVtaTe9Y0qWbNmPsX/y7KsNprmxBZoB0pww5ZGs1u/ohcrvQ3tE6jA==",
"dev": true,
"requires": {}
},
"sisteransi": {

View File

@@ -50,7 +50,6 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"recharts": "^2.7.2",
"simple-zustand-devtools": "^1.1.0",
"style-loader": "^3.3.3",
"svg-url-loader": "^8.0.0",
"ts-jest": "^29.0.5",
@@ -75,6 +74,7 @@
"react-hook-form": "^7.43.2",
"react-quill": "^2.0.0",
"react-router-dom": "^6.8.1",
"simple-zustand-devtools": "^1.1.0",
"uuid": "^9.0.0",
"zod": "^3.20.6",
"zustand": "^4.3.3"

View File

@@ -1,6 +1,6 @@
import React, { createContext, useRef, useContext, useEffect } from 'react';
import { createStore, useStore } from 'zustand';
import { mountStoreDevtool } from 'simple-zustand-devtools'; // eslint-disable-line import/no-extraneous-dependencies
import { mountStoreDevtool } from 'simple-zustand-devtools';
import { v4 as uuid } from 'uuid';
import { produce } from 'immer';
import { NODE_DEFAULTS } from 'src/config';

View File

@@ -1,6 +1,6 @@
import React, { createContext, useContext, useRef, useEffect } from 'react';
import { createStore, useStore } from 'zustand';
import { mountStoreDevtool } from 'simple-zustand-devtools'; // eslint-disable-line import/no-extraneous-dependencies
import { mountStoreDevtool } from 'simple-zustand-devtools';
import { CoordsUtils, incrementZoom, decrementZoom } from 'src/utils';
import { UiState, UiStateActions } from 'src/types';