From 92c2dc54a9edac7f8d7fe00d274d42b799b33d99 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 22:22:55 +0400 Subject: feat(config): Initial default rules Signed-off-by: Valentin Popov --- src/typescript.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/typescript.ts') diff --git a/src/typescript.ts b/src/typescript.ts index 5221154..b24cbed 100644 --- a/src/typescript.ts +++ b/src/typescript.ts @@ -2,7 +2,13 @@ import rDefault from "./rules/typescript/default.json"; import rOverrides from "./rules/typescript/overrides.json"; module.exports = { - "extends": ["./javascript"], + "extends": [ + "./javascript", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended", + "plugin:@typescript-eslint/recommended-requiring-type-checking", + "plugin:import/typescript", + ], "overrides": [ { files: [ @@ -13,9 +19,9 @@ module.exports = { }, ], "parser": "@typescript-eslint/parser", - "parserOptions": { - tsconfigRootDir: __dirname, - }, - "plugins": ["@typescript-eslint"], + "plugins": [ + "@typescript-eslint", + "import", + ], "rules": { ...rDefault }, }; -- cgit v1.2.3