summaryrefslogtreecommitdiff
path: root/src/typescript.ts
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 17:21:21 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 17:21:21 +0300
commitdab6a8a84abd417f02816cbe185e3938cea856c0 (patch)
tree3ea00fb93791ae160217c3cf09701bd748ccd434 /src/typescript.ts
parentf577ea55fe8599983e1066e8381317d35ec542c5 (diff)
downloadeslint-config-dab6a8a84abd417f02816cbe185e3938cea856c0.tar.xz
eslint-config-dab6a8a84abd417f02816cbe185e3938cea856c0.zip
feat(typescript): Initial TypeScript's config
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/typescript.ts')
-rw-r--r--src/typescript.ts21
1 files changed, 21 insertions, 0 deletions
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 },
+};