diff options
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 }, +}; |