added typscript support to eslint-config

This commit is contained in:
Sebastian Sdorra
2019-10-20 18:11:43 +02:00
parent 490418d06e
commit 2c93b8362f
3 changed files with 165 additions and 11 deletions

View File

@@ -9,5 +9,21 @@ module.exports = {
"jsx-a11y/href-no-hash": [0],
"flowtype/no-types-missing-file-annotation": 2,
"no-console": "error"
}
},
"overrides": [
{
files: ["*.ts", "*.tsx"],
parser: "@typescript-eslint/parser",
"extends": [
"react-app",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "double"],
"jsx-a11y/href-no-hash": [0],
"no-console": "error"
}
}
]
};