summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/.eslintrc.js10
-rw-r--r--gui/package.json2
-rw-r--r--gui/src/main/proc.ts2
-rw-r--r--gui/types/d3-geo-projection/index.d.ts1
4 files changed, 3 insertions, 12 deletions
diff --git a/gui/.eslintrc.js b/gui/.eslintrc.js
index e79a88fc0a..7843c52d0a 100644
--- a/gui/.eslintrc.js
+++ b/gui/.eslintrc.js
@@ -18,10 +18,6 @@ module.exports = {
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
- 'plugin:import/errors',
- 'plugin:import/warnings',
- 'plugin:import/typescript',
- 'plugin:promise/recommended',
],
settings: {
react: {
@@ -41,14 +37,12 @@ module.exports = {
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
+ '@typescript-eslint/no-non-null-assertion': 'off',
// TODO: This should eventually be removed.
- '@typescript-eslint/ban-types': 'warn',
- '@typescript-eslint/no-non-null-assertion': 'warn',
- '@typescript-eslint/no-explicit-any': 'warn',
- 'react/no-find-dom-node': 'warn',
'@typescript-eslint/interface-name-prefix': 'off',
// TODO: The rules below should be enabled when move from ReactXP is completed.
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
+ 'react/no-find-dom-node': 'off',
},
};
diff --git a/gui/package.json b/gui/package.json
index 2d4282249e..2d33a6af81 100644
--- a/gui/package.json
+++ b/gui/package.json
@@ -74,9 +74,7 @@
"enzyme": "^3.7.0",
"enzyme-adapter-react-16": "^1.7.0",
"eslint": "^6.8.0",
- "eslint-plugin-import": "^2.20.1",
"eslint-plugin-prettier": "^3.1.2",
- "eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.18.3",
"gettext-extractor": "^3.5.1",
"gulp": "^4.0.2",
diff --git a/gui/src/main/proc.ts b/gui/src/main/proc.ts
index 238c08c172..1e8118268d 100644
--- a/gui/src/main/proc.ts
+++ b/gui/src/main/proc.ts
@@ -10,7 +10,7 @@ function getBasePath(): string {
process.env.MULLVAD_PATH || path.resolve(path.join(__dirname, '../../../../target/debug'))
);
} else {
- return process.resourcesPath!;
+ return process.resourcesPath;
}
}
diff --git a/gui/types/d3-geo-projection/index.d.ts b/gui/types/d3-geo-projection/index.d.ts
index 0c70c39e6b..0f6de59ba2 100644
--- a/gui/types/d3-geo-projection/index.d.ts
+++ b/gui/types/d3-geo-projection/index.d.ts
@@ -1,5 +1,4 @@
declare module 'd3-geo-projection' {
- // eslint-disable-next-line import/no-extraneous-dependencies
import { GeoProjection } from 'd3-geo';
export function geoTimes(): GeoProjection;