optional chaining

Summary: Adds support for optional chaining to the codebase, enables flow and eslint support for it.

Reviewed By: passy

Differential Revision: D9940732

fbshipit-source-id: 730aa76653bd22a8fa17a73e72b3a7329de0226c
This commit is contained in:
Daniel Büchele
2018-09-20 04:13:05 -07:00
committed by Facebook Github Bot
parent 5a492951f5
commit 7825d9247c
6 changed files with 76 additions and 74 deletions

View File

@@ -11,6 +11,7 @@ const fbjs = require('eslint-config-fbjs');
const pattern = /^\*\n \* Copyright 20\d{2}-present Facebook\.\n \* This source code is licensed under the MIT license found in the\n \* LICENSE file in the root directory of this source tree\.\n \* @format\n./;
module.exports = {
parser: 'babel-eslint',
extends: 'fbjs',
plugins: [...fbjs.plugins, 'header', 'prettier'],
rules: {