diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 17:21:21 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 17:21:21 +0300 |
commit | dab6a8a84abd417f02816cbe185e3938cea856c0 (patch) | |
tree | 3ea00fb93791ae160217c3cf09701bd748ccd434 /src | |
parent | f577ea55fe8599983e1066e8381317d35ec542c5 (diff) | |
download | eslint-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')
-rw-r--r-- | src/rules/typescript/default.json | 1 | ||||
-rw-r--r-- | src/rules/typescript/overrides.json | 1 | ||||
-rw-r--r-- | src/typescript.ts | 21 |
3 files changed, 23 insertions, 0 deletions
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/src/rules/typescript/default.json @@ -0,0 +1 @@ +{} diff --git a/src/rules/typescript/overrides.json b/src/rules/typescript/overrides.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/src/rules/typescript/overrides.json @@ -0,0 +1 @@ +{} 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 }, +}; |