From 271d8ad3d9b60b09b647af7406d910ae29bbf671 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Mon, 15 Jun 2020 20:32:28 +0200 Subject: [PATCH] remove flow based configuration and use ts as default --- scm-ui/eslint-config/index.js | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/scm-ui/eslint-config/index.js b/scm-ui/eslint-config/index.js index 8cfd2c1c97..9d01ade730 100644 --- a/scm-ui/eslint-config/index.js +++ b/scm-ui/eslint-config/index.js @@ -22,35 +22,15 @@ * SOFTWARE. */ module.exports = { - extends: [ - "react-app", - "plugin:prettier/recommended", - "plugin:flowtype/recommended" - ], + parser: "@typescript-eslint/parser", + extends: ["react-app", "plugin:prettier/recommended", "plugin:@typescript-eslint/recommended"], rules: { + "prettier/prettier": "warn", semi: ["error", "always"], quotes: ["error", "double"], "jsx-a11y/href-no-hash": [0], - "flowtype/no-types-missing-file-annotation": 2, + "@typescript-eslint/explicit-function-return-type": "off", + "@typescript-eslint/ban-ts-ignore": "warn", "no-console": "error" - }, - overrides: [ - { - files: ["*.ts", "*.tsx"], - parser: "@typescript-eslint/parser", - extends: [ - "react-app", - "plugin:prettier/recommended", - "plugin:@typescript-eslint/recommended" - ], - rules: { - semi: ["error", "always"], - quotes: ["error", "double"], - "jsx-a11y/href-no-hash": [0], - "@typescript-eslint/explicit-function-return-type": "off", - "@typescript-eslint/ban-ts-ignore": "warn", - "no-console": "error" - } - } - ] + } };