Update dependencies (#190)

This commit is contained in:
Piotr Rogowski 2021-09-26 12:47:07 +02:00 committed by GitHub
parent b5b0f1c9c4
commit 0a9a2f5c21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 2874 additions and 1632 deletions

View File

@ -1,4 +1,8 @@
--- ---
parser: '@typescript-eslint/parser'
env:
node: true
es6: true
settings: settings:
import/core-modules: import/core-modules:
- electron - electron
@ -19,6 +23,7 @@ extends:
- plugin:import/warnings - plugin:import/warnings
- plugin:import/typescript - plugin:import/typescript
plugins: plugins:
- '@typescript-eslint'
- jsx-a11y - jsx-a11y
- prettier - prettier
- modules-newline - modules-newline
@ -59,3 +64,6 @@ rules:
'@typescript-eslint/no-unused-vars': 1 '@typescript-eslint/no-unused-vars': 1
no-shadow: 0 no-shadow: 0
'@typescript-eslint/no-shadow': 2 '@typescript-eslint/no-shadow': 2
arrow-body-style:
- warn
- as-needed

View File

@ -17,7 +17,7 @@ jobs:
strategy: strategy:
matrix: matrix:
node-version: [14.x] node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: steps:

View File

@ -40,7 +40,7 @@ There are many ways in which you can participate in the project and every bit of
Recommended dev environment: Recommended dev environment:
- [Node LTS](https://nodejs.org/) 14.x.x - [Node](https://nodejs.org/) 16.x.x
```bash ```bash
# install packages # install packages

4448
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -18,8 +18,8 @@
"ini:start": "npm run ini:compile && node src/parser/ini.js", "ini:start": "npm run ini:compile && node src/parser/ini.js",
"ini:watch": "npx onchange src/parser/ini.ts -- npm run ini:start", "ini:watch": "npx onchange src/parser/ini.ts -- npm run ini:start",
"test": "craco test", "test": "craco test",
"lint": "eslint src/", "lint": "tsc && eslint --max-warnings=0 src",
"lint-fix": "eslint --fix src/", "lint-fix": "eslint --fix src",
"eject": "react-scripts eject" "eject": "react-scripts eject"
}, },
"browserslist": { "browserslist": {
@ -36,8 +36,8 @@
}, },
"dependencies": { "dependencies": {
"@reduxjs/toolkit": "^1.5.1", "@reduxjs/toolkit": "^1.5.1",
"@sentry/react": "^6.3.5", "@sentry/react": "^6.13.2",
"@sentry/tracing": "^6.3.5", "@sentry/tracing": "^6.13.2",
"antd": "^4.15.3", "antd": "^4.15.3",
"electron-squirrel-startup": "^1.0.0", "electron-squirrel-startup": "^1.0.0",
"js-yaml": "^4.1.0 ", "js-yaml": "^4.1.0 ",
@ -54,34 +54,36 @@
"recharts": "^2.0.8" "recharts": "^2.0.8"
}, },
"devDependencies": { "devDependencies": {
"@craco/craco": "^6.1.1", "@craco/craco": "^6.3.0",
"@electron-forge/cli": "^6.0.0-beta.54", "@electron-forge/cli": "^6.0.0-beta.61",
"@electron-forge/maker-deb": "^6.0.0-beta.54", "@electron-forge/maker-deb": "^6.0.0-beta.61",
"@electron-forge/maker-dmg": "^6.0.0-beta.54", "@electron-forge/maker-dmg": "^6.0.0-beta.61",
"@electron-forge/maker-rpm": "^6.0.0-beta.54", "@electron-forge/maker-rpm": "^6.0.0-beta.61",
"@electron-forge/maker-squirrel": "^6.0.0-beta.54", "@electron-forge/maker-squirrel": "^6.0.0-beta.61",
"@electron-forge/maker-zip": "^6.0.0-beta.54", "@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/js-yaml": "^4.0.1",
"@types/node": "^14.14.41", "@types/node": "^16.9.6",
"@types/pako": "^1.0.1", "@types/pako": "^1.0.1",
"@types/parsimmon": "^1.10.6", "@types/parsimmon": "^1.10.6",
"@types/react": "^17.0.4", "@types/react": "^17.0.24",
"@types/react-dom": "^17.0.3", "@types/react-dom": "^17.0.3",
"@types/react-redux": "^7.1.16", "@types/react-redux": "^7.1.16",
"@types/react-router-dom": "^5.1.7", "@types/react-router-dom": "^5.1.7",
"concurrently": "^6.0.2", "concurrently": "^6.0.2",
"electron": "^13.0.0-beta.18", "electron": "^15.0.0",
"eslint": "^7.25.0", "eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1", "eslint-config-airbnb": "^18.2.1",
"eslint-config-airbnb-base": "^14.2.1", "eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.3.0", "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-jsx-a11y": "^6.4.1",
"eslint-plugin-modules-newline": "^0.0.6", "eslint-plugin-modules-newline": "^0.0.6",
"eslint-plugin-prettier": "^3.4.0", "eslint-plugin-prettier": "^4.0.0",
"less-loader": "^6.1.0", "less-loader": "^6.1.0",
"prettier": "^2.2.1", "prettier": "^2.2.1",
"typescript": "^4.2.4", "typescript": "^4.4.3",
"wait-on": "^5.3.0", "wait-on": "^5.3.0",
"worker-loader": "^3.0.8" "worker-loader": "^3.0.8"
}, },

View File

@ -161,7 +161,7 @@ const Log = ({ ui, config }: { ui: UIState, config: Config }) => {
} }
}; };
} catch (error) { } catch (error) {
setFetchError(error); setFetchError(error as Error);
throw error; throw error;
} }
}; };

View File

@ -1,5 +1,3 @@
/* eslint-disable no-bitwise */
import { import {
useCallback, useCallback,
useEffect, useEffect,

View File

@ -45,7 +45,7 @@ export const colorHsl = (min: number, max: number, value: number): HslType => {
}; };
// eslint-disable-next-line prefer-template // 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 // TODO: move this or rename to MS
export const formatNumber = (value: number, format: string): string => { export const formatNumber = (value: number, format: string): string => {

View File

@ -103,7 +103,7 @@ export const evaluateExpression = (expression: string, tuneConstants: TuneConsta
${stripExpression(expression)}; ${stripExpression(expression)};
`); `);
} catch (error) { } catch (error) {
console.info('Condition evaluation failed with:', error.message); console.info('Condition evaluation failed with:', (error as Error).message);
} }
return undefined; return undefined;