Update dependencies (#190)
This commit is contained in:
parent
b5b0f1c9c4
commit
0a9a2f5c21
|
@ -1,4 +1,8 @@
|
|||
---
|
||||
parser: '@typescript-eslint/parser'
|
||||
env:
|
||||
node: true
|
||||
es6: true
|
||||
settings:
|
||||
import/core-modules:
|
||||
- electron
|
||||
|
@ -19,6 +23,7 @@ extends:
|
|||
- plugin:import/warnings
|
||||
- plugin:import/typescript
|
||||
plugins:
|
||||
- '@typescript-eslint'
|
||||
- jsx-a11y
|
||||
- prettier
|
||||
- modules-newline
|
||||
|
@ -59,3 +64,6 @@ rules:
|
|||
'@typescript-eslint/no-unused-vars': 1
|
||||
no-shadow: 0
|
||||
'@typescript-eslint/no-shadow': 2
|
||||
arrow-body-style:
|
||||
- warn
|
||||
- as-needed
|
||||
|
|
|
@ -17,7 +17,7 @@ jobs:
|
|||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x]
|
||||
node-version: [16.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
steps:
|
||||
|
|
|
@ -40,7 +40,7 @@ There are many ways in which you can participate in the project and every bit of
|
|||
|
||||
Recommended dev environment:
|
||||
|
||||
- [Node LTS](https://nodejs.org/) 14.x.x
|
||||
- [Node](https://nodejs.org/) 16.x.x
|
||||
|
||||
```bash
|
||||
# install packages
|
||||
|
|
File diff suppressed because it is too large
Load Diff
38
package.json
38
package.json
|
@ -18,8 +18,8 @@
|
|||
"ini:start": "npm run ini:compile && node src/parser/ini.js",
|
||||
"ini:watch": "npx onchange src/parser/ini.ts -- npm run ini:start",
|
||||
"test": "craco test",
|
||||
"lint": "eslint src/",
|
||||
"lint-fix": "eslint --fix src/",
|
||||
"lint": "tsc && eslint --max-warnings=0 src",
|
||||
"lint-fix": "eslint --fix src",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"browserslist": {
|
||||
|
@ -36,8 +36,8 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@reduxjs/toolkit": "^1.5.1",
|
||||
"@sentry/react": "^6.3.5",
|
||||
"@sentry/tracing": "^6.3.5",
|
||||
"@sentry/react": "^6.13.2",
|
||||
"@sentry/tracing": "^6.13.2",
|
||||
"antd": "^4.15.3",
|
||||
"electron-squirrel-startup": "^1.0.0",
|
||||
"js-yaml": "^4.1.0 ",
|
||||
|
@ -54,34 +54,36 @@
|
|||
"recharts": "^2.0.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@craco/craco": "^6.1.1",
|
||||
"@electron-forge/cli": "^6.0.0-beta.54",
|
||||
"@electron-forge/maker-deb": "^6.0.0-beta.54",
|
||||
"@electron-forge/maker-dmg": "^6.0.0-beta.54",
|
||||
"@electron-forge/maker-rpm": "^6.0.0-beta.54",
|
||||
"@electron-forge/maker-squirrel": "^6.0.0-beta.54",
|
||||
"@electron-forge/maker-zip": "^6.0.0-beta.54",
|
||||
"@craco/craco": "^6.3.0",
|
||||
"@electron-forge/cli": "^6.0.0-beta.61",
|
||||
"@electron-forge/maker-deb": "^6.0.0-beta.61",
|
||||
"@electron-forge/maker-dmg": "^6.0.0-beta.61",
|
||||
"@electron-forge/maker-rpm": "^6.0.0-beta.61",
|
||||
"@electron-forge/maker-squirrel": "^6.0.0-beta.61",
|
||||
"@electron-forge/maker-zip": "^6.0.0-beta.61",
|
||||
"@typescript-eslint/eslint-plugin": "^4.31.0",
|
||||
"@typescript-eslint/parser": "^4.31.0",
|
||||
"@types/js-yaml": "^4.0.1",
|
||||
"@types/node": "^14.14.41",
|
||||
"@types/node": "^16.9.6",
|
||||
"@types/pako": "^1.0.1",
|
||||
"@types/parsimmon": "^1.10.6",
|
||||
"@types/react": "^17.0.4",
|
||||
"@types/react": "^17.0.24",
|
||||
"@types/react-dom": "^17.0.3",
|
||||
"@types/react-redux": "^7.1.16",
|
||||
"@types/react-router-dom": "^5.1.7",
|
||||
"concurrently": "^6.0.2",
|
||||
"electron": "^13.0.0-beta.18",
|
||||
"eslint": "^7.25.0",
|
||||
"electron": "^15.0.0",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-airbnb": "^18.2.1",
|
||||
"eslint-config-airbnb-base": "^14.2.1",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"eslint-plugin-import": "^2.24.2",
|
||||
"eslint-plugin-jsx-a11y": "^6.4.1",
|
||||
"eslint-plugin-modules-newline": "^0.0.6",
|
||||
"eslint-plugin-prettier": "^3.4.0",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"less-loader": "^6.1.0",
|
||||
"prettier": "^2.2.1",
|
||||
"typescript": "^4.2.4",
|
||||
"typescript": "^4.4.3",
|
||||
"wait-on": "^5.3.0",
|
||||
"worker-loader": "^3.0.8"
|
||||
},
|
||||
|
|
|
@ -161,7 +161,7 @@ const Log = ({ ui, config }: { ui: UIState, config: Config }) => {
|
|||
}
|
||||
};
|
||||
} catch (error) {
|
||||
setFetchError(error);
|
||||
setFetchError(error as Error);
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable no-bitwise */
|
||||
|
||||
import {
|
||||
useCallback,
|
||||
useEffect,
|
||||
|
|
|
@ -45,7 +45,7 @@ export const colorHsl = (min: number, max: number, value: number): HslType => {
|
|||
};
|
||||
|
||||
// eslint-disable-next-line prefer-template
|
||||
export const round = (value: number, digits: number | string) => +(Math.round(value + `e+${digits}` as any) + `e-${digits}`);
|
||||
export const round = (value: number, digits: number | string = 0) => +(Math.round(value + `e+${digits}` as any) + `e-${digits}`);
|
||||
|
||||
// TODO: move this or rename to MS
|
||||
export const formatNumber = (value: number, format: string): string => {
|
||||
|
|
|
@ -103,7 +103,7 @@ export const evaluateExpression = (expression: string, tuneConstants: TuneConsta
|
|||
${stripExpression(expression)};
|
||||
`);
|
||||
} catch (error) {
|
||||
console.info('Condition evaluation failed with:', error.message);
|
||||
console.info('Condition evaluation failed with:', (error as Error).message);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
|
|
Loading…
Reference in New Issue