diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-02-21 11:48:02 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-02-21 14:31:19 +0100 |
| commit | e260455ac88de2c641d5df11af9d2fd38b047fe0 (patch) | |
| tree | b6a77e46fc0f3ee3aa4886d2d33ce147bfc8996b | |
| parent | 8b3fc7e33dd2249f7b27a48cc76cefc517f370ea (diff) | |
| download | mullvadvpn-e260455ac88de2c641d5df11af9d2fd38b047fe0.tar.xz mullvadvpn-e260455ac88de2c641d5df11af9d2fd38b047fe0.zip | |
Add additional eslint rules
| -rw-r--r-- | gui/.eslintrc.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/.eslintrc.js b/gui/.eslintrc.js index 7843c52d0a..4a8eac1f15 100644 --- a/gui/.eslintrc.js +++ b/gui/.eslintrc.js @@ -34,12 +34,14 @@ module.exports = { ], '@typescript-eslint/require-await': 'error', '@typescript-eslint/no-floating-promises': 'error', + 'no-return-await': 'error', + 'no-unused-expressions': 'error', '@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/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', |
