diff options
Diffstat (limited to 'src/typescript.ts')
-rw-r--r-- | src/typescript.ts | 21 |
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 }, +}; |