typescript eslint plugin

Summary: This is required to properly run eslint in Atom/VSCode on TypeScript files

Reviewed By: jknoxville

Differential Revision: D16201418

fbshipit-source-id: 31da04c2d313e9147e0f868c1af15bf3115e6d6a
This commit is contained in:
Daniel Büchele
2019-07-29 06:32:21 -07:00
committed by Facebook Github Bot
parent 2dd580f24a
commit 2c7371d264
4 changed files with 58 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ const pattern = /^\*\n \* Copyright 20\d{2}-present Facebook\.\n \* This source
module.exports = {
parser: 'babel-eslint',
extends: 'fbjs',
plugins: [...fbjs.plugins, 'header', 'prettier'],
plugins: [...fbjs.plugins, 'header', 'prettier', '@typescript-eslint'],
rules: {
// disable rules from eslint-config-fbjs
'react/react-in-jsx-scope': 0, // not needed with our metro implementation