From dab6a8a84abd417f02816cbe185e3938cea856c0 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 18:21:21 +0400 Subject: feat(typescript): Initial TypeScript's config Signed-off-by: Valentin Popov --- src/typescript.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/typescript.ts (limited to 'src/typescript.ts') diff --git a/src/typescript.ts b/src/typescript.ts new file mode 100644 index 0000000..0396d6b --- /dev/null +++ b/src/typescript.ts @@ -0,0 +1,21 @@ +import overrides from "./rules/typescript/overrides.json"; +import rules from "./rules/typescript/default.json"; + +module.exports = { + "extends": ["./javascript"], + "overrides": [ + { + files: [ + "*.ts", + "*.tsx", + ], + rules: { ...overrides }, + }, + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + tsconfigRootDir: __dirname, + }, + "plugins": ["@typescript-eslint"], + "rules": { ...rules }, +}; -- cgit v1.2.3