diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ffee7fdee26..c527adc1e67 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,10 +8,10 @@ the process for contributing will follow standard GitHub protocol. ## Pull Requests We actively welcome your pull requests. -1. Fork the repo and create your branch from `master`. +1. Fork the repo and create your branch from `master`. 2. If you've added code that should be tested, add tests -3. If you've changed APIs, update the documentation. -4. Ensure the test suite passes. +3. If you've changed APIs, update the documentation. +4. Ensure the test suite passes. 5. Make sure your code lints and typechecks. 6. If you haven't already, complete the Contributor License Agreement ("CLA"). @@ -21,7 +21,7 @@ to do this once to work on any of Facebook's open source projects. Complete your CLA here: -## Issues +## Issues We use GitHub issues to track public bugs. Please ensure your description is clear and has sufficient instructions to be able to reproduce the issue. @@ -29,7 +29,7 @@ Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe disclosure of security bugs. In those cases, please go through the process outlined on that page and do not file a public issue. -## Coding Style +## Coding Style * Use semicolons; * Commas last, * 2 spaces for indentation (no tabs) @@ -39,5 +39,7 @@ outlined on that page and do not file a public issue. * "Attractive" ## License +react-docgen is [MIT licensed](https://github.com/reactjs/react-docgen/blob/master/LICENSE). + By contributing to react-docgen, you agree that your contributions will be licensed -under its BSD license. +under its MIT license. diff --git a/LICENSE b/LICENSE index 17e42888034..b96dcb0480a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,30 +1,21 @@ -BSD License +MIT License -For React docs generator software +Copyright (c) Facebook, Inc. and its affiliates. -Copyright (c) 2015, Facebook, Inc. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - * Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither the name Facebook nor the names of its contributors may be used to - endorse or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/PATENTS b/PATENTS deleted file mode 100644 index bf389b9dde4..00000000000 --- a/PATENTS +++ /dev/null @@ -1,33 +0,0 @@ -Additional Grant of Patent Rights Version 2 - -"Software" means the React docs generator software distributed by Facebook, Inc. - -Facebook, Inc. ("Facebook") hereby grants to each recipient of the Software -("you") a perpetual, worldwide, royalty-free, non-exclusive, irrevocable -(subject to the termination provision below) license under any Necessary -Claims, to make, have made, use, sell, offer to sell, import, and otherwise -transfer the Software. For avoidance of doubt, no license is granted under -Facebook's rights in any patent claims that are infringed by (i) modifications -to the Software made by you or any third party or (ii) the Software in -combination with any software or other technology. - -The license granted hereunder will terminate, automatically and without notice, -if you (or any of your subsidiaries, corporate affiliates or agents) initiate -directly or indirectly, or take a direct financial interest in, any Patent -Assertion: (i) against Facebook or any of its subsidiaries or corporate -affiliates, (ii) against any party if such Patent Assertion arises in whole or -in part from any software, technology, product or service of Facebook or any of -its subsidiaries or corporate affiliates, or (iii) against any party relating -to the Software. Notwithstanding the foregoing, if Facebook or any of its -subsidiaries or corporate affiliates files a lawsuit alleging patent -infringement against you in the first instance, and you respond by filing a -patent infringement counterclaim in that lawsuit against that party that is -unrelated to the Software, the license granted hereunder will not terminate -under section (i) of this paragraph due to such counterclaim. - -A "Necessary Claim" is a claim of a patent owned by Facebook that is -necessarily infringed by the Software standing alone. - -A "Patent Assertion" is any lawsuit or other action alleging direct, indirect, -or contributory infringement or inducement to infringe any patent, including a -cross-claim or counterclaim. diff --git a/bin/__tests__/example/MultipleComponents.js b/bin/__tests__/example/MultipleComponents.js index 649d5b42751..694a5b1791a 100644 --- a/bin/__tests__/example/MultipleComponents.js +++ b/bin/__tests__/example/MultipleComponents.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/bin/__tests__/example/customResolver.js b/bin/__tests__/example/customResolver.js index 91e15381281..f60feec4dfa 100644 --- a/bin/__tests__/example/customResolver.js +++ b/bin/__tests__/example/customResolver.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/bin/__tests__/react-docgen-test.js b/bin/__tests__/react-docgen-test.js index 291e6d5b7a4..e50c44ff46f 100644 --- a/bin/__tests__/react-docgen-test.js +++ b/bin/__tests__/react-docgen-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/bin/react-docgen.js b/bin/react-docgen.js index 96c542b220b..c8cec2b4092 100755 --- a/bin/react-docgen.js +++ b/bin/react-docgen.js @@ -1,11 +1,9 @@ #!/usr/bin/env node -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/example/generateMarkdown.js b/example/generateMarkdown.js index 17892fbd9e7..cd45a10a070 100644 --- a/example/generateMarkdown.js +++ b/example/generateMarkdown.js @@ -1,10 +1,8 @@ /** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ function stringOfLength(string, length) { diff --git a/flow-typed/recast.js b/flow-typed/recast.js index 3db1e4dbaad..294875fb4ec 100644 --- a/flow-typed/recast.js +++ b/flow-typed/recast.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/package.json b/package.json index c3b1dd8d4af..1d80bd2fc4c 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,7 @@ }, "files": [ "bin", - "dist", - "PATENTS" + "dist" ], "engines": { "node": ">=6" @@ -36,7 +35,7 @@ "documentation-generation" ], "author": "Felix Kling", - "license": "BSD-3-Clause", + "license": "MIT", "dependencies": { "@babel/core": "^7.0.0", "@babel/runtime": "^7.0.0", diff --git a/src/Documentation.js b/src/Documentation.js index 58a3ba03736..2db43e41a68 100644 --- a/src/Documentation.js +++ b/src/Documentation.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @flow + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * + * @flow */ import type { PropDescriptor } from './types'; diff --git a/src/__mocks__/Documentation.js b/src/__mocks__/Documentation.js index f3a8debdb07..4d30f7cab03 100644 --- a/src/__mocks__/Documentation.js +++ b/src/__mocks__/Documentation.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/__tests__/fixtures/component_1.js b/src/__tests__/fixtures/component_1.js index 443642666a5..981689f1eb0 100644 --- a/src/__tests__/fixtures/component_1.js +++ b/src/__tests__/fixtures/component_1.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/__tests__/fixtures/component_11.js b/src/__tests__/fixtures/component_11.js index d2d813843a7..ff828851b13 100644 --- a/src/__tests__/fixtures/component_11.js +++ b/src/__tests__/fixtures/component_11.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/__tests__/fixtures/component_13.js b/src/__tests__/fixtures/component_13.js index ed4c14a2486..24132096f61 100644 --- a/src/__tests__/fixtures/component_13.js +++ b/src/__tests__/fixtures/component_13.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -64,4 +62,4 @@ class Foo extends React.Component { } } -export default Foo; \ No newline at end of file +export default Foo; diff --git a/src/__tests__/fixtures/component_17.js b/src/__tests__/fixtures/component_17.js index 438c2c730cf..bc1d26d45fe 100644 --- a/src/__tests__/fixtures/component_17.js +++ b/src/__tests__/fixtures/component_17.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/__tests__/fixtures/component_2.js b/src/__tests__/fixtures/component_2.js index 10087a48198..9ab9fd45b4a 100644 --- a/src/__tests__/fixtures/component_2.js +++ b/src/__tests__/fixtures/component_2.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/__tests__/fixtures/component_4.js b/src/__tests__/fixtures/component_4.js index f5eb42935f3..7feddd18c40 100644 --- a/src/__tests__/fixtures/component_4.js +++ b/src/__tests__/fixtures/component_4.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/__tests__/fixtures/component_7.js b/src/__tests__/fixtures/component_7.js index cb18b636852..e6849591589 100644 --- a/src/__tests__/fixtures/component_7.js +++ b/src/__tests__/fixtures/component_7.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/__tests__/fixtures/component_8.js b/src/__tests__/fixtures/component_8.js index 168de70aca2..38c479ec603 100644 --- a/src/__tests__/fixtures/component_8.js +++ b/src/__tests__/fixtures/component_8.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -23,4 +21,3 @@ class Parent extends React.Component { } export default Parent; - diff --git a/src/__tests__/main-test.js b/src/__tests__/main-test.js index 7acaab285ef..4289b20cad1 100644 --- a/src/__tests__/main-test.js +++ b/src/__tests__/main-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/__tests__/parse-test.js b/src/__tests__/parse-test.js index 5cc3b89c8a0..6fd44c39922 100644 --- a/src/__tests__/parse-test.js +++ b/src/__tests__/parse-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/babelParser.js b/src/babelParser.js index 046e58bf090..993fc2712e4 100644 --- a/src/babelParser.js +++ b/src/babelParser.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ const babel = require('@babel/core'); diff --git a/src/handlers/__tests__/componentDocblockHandler-test.js b/src/handlers/__tests__/componentDocblockHandler-test.js index 7a9edfb9816..9c5c9dc06df 100644 --- a/src/handlers/__tests__/componentDocblockHandler-test.js +++ b/src/handlers/__tests__/componentDocblockHandler-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/handlers/__tests__/componentMethodsHandler-test.js b/src/handlers/__tests__/componentMethodsHandler-test.js index 63555f206f6..60eb89d8498 100644 --- a/src/handlers/__tests__/componentMethodsHandler-test.js +++ b/src/handlers/__tests__/componentMethodsHandler-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/handlers/__tests__/componentMethodsJsDocHandler-test.js b/src/handlers/__tests__/componentMethodsJsDocHandler-test.js index 16e06232817..c45afc338c6 100644 --- a/src/handlers/__tests__/componentMethodsJsDocHandler-test.js +++ b/src/handlers/__tests__/componentMethodsJsDocHandler-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/handlers/__tests__/defaultPropsHandler-test.js b/src/handlers/__tests__/defaultPropsHandler-test.js index a97a32e6de7..5fd846a76a9 100644 --- a/src/handlers/__tests__/defaultPropsHandler-test.js +++ b/src/handlers/__tests__/defaultPropsHandler-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/handlers/__tests__/displayNameHandler-test.js b/src/handlers/__tests__/displayNameHandler-test.js index 74a693e4343..9505095bf50 100644 --- a/src/handlers/__tests__/displayNameHandler-test.js +++ b/src/handlers/__tests__/displayNameHandler-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/handlers/__tests__/flowTypeHandler-test.js b/src/handlers/__tests__/flowTypeHandler-test.js index 699ebd974de..08e6b348719 100644 --- a/src/handlers/__tests__/flowTypeHandler-test.js +++ b/src/handlers/__tests__/flowTypeHandler-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/handlers/__tests__/propDocblockHandler-test.js b/src/handlers/__tests__/propDocblockHandler-test.js index 29461ca015c..39392b672f6 100644 --- a/src/handlers/__tests__/propDocblockHandler-test.js +++ b/src/handlers/__tests__/propDocblockHandler-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/handlers/__tests__/propTypeCompositionHandler-test.js b/src/handlers/__tests__/propTypeCompositionHandler-test.js index ae02bb5d61f..02d688d5979 100644 --- a/src/handlers/__tests__/propTypeCompositionHandler-test.js +++ b/src/handlers/__tests__/propTypeCompositionHandler-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/handlers/__tests__/propTypeHandler-test.js b/src/handlers/__tests__/propTypeHandler-test.js index fd0a4de8232..aabba056874 100644 --- a/src/handlers/__tests__/propTypeHandler-test.js +++ b/src/handlers/__tests__/propTypeHandler-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/handlers/componentDocblockHandler.js b/src/handlers/componentDocblockHandler.js index 925727a0ce1..e4a4b34e6af 100644 --- a/src/handlers/componentDocblockHandler.js +++ b/src/handlers/componentDocblockHandler.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import type Documentation from '../Documentation'; diff --git a/src/handlers/componentMethodsHandler.js b/src/handlers/componentMethodsHandler.js index 2fcc29fd63d..1a695063eee 100644 --- a/src/handlers/componentMethodsHandler.js +++ b/src/handlers/componentMethodsHandler.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/handlers/componentMethodsJsDocHandler.js b/src/handlers/componentMethodsJsDocHandler.js index 35a4a3770b1..05d3525552e 100644 --- a/src/handlers/componentMethodsJsDocHandler.js +++ b/src/handlers/componentMethodsJsDocHandler.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/handlers/defaultPropsHandler.js b/src/handlers/defaultPropsHandler.js index 7d410323265..ab452e4267d 100644 --- a/src/handlers/defaultPropsHandler.js +++ b/src/handlers/defaultPropsHandler.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import type Documentation from '../Documentation'; diff --git a/src/handlers/displayNameHandler.js b/src/handlers/displayNameHandler.js index 7e36841b63e..867c133ee54 100644 --- a/src/handlers/displayNameHandler.js +++ b/src/handlers/displayNameHandler.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import type Documentation from '../Documentation'; diff --git a/src/handlers/flowTypeHandler.js b/src/handlers/flowTypeHandler.js index 1dbca53fcaa..d935e206503 100644 --- a/src/handlers/flowTypeHandler.js +++ b/src/handlers/flowTypeHandler.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import recast from 'recast'; diff --git a/src/handlers/index.js b/src/handlers/index.js index d7d28eef5ec..298e6fe05e5 100644 --- a/src/handlers/index.js +++ b/src/handlers/index.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ export { diff --git a/src/handlers/propDocBlockHandler.js b/src/handlers/propDocBlockHandler.js index 2213a33c37f..289e9ed5112 100644 --- a/src/handlers/propDocBlockHandler.js +++ b/src/handlers/propDocBlockHandler.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import type Documentation from '../Documentation'; diff --git a/src/handlers/propTypeCompositionHandler.js b/src/handlers/propTypeCompositionHandler.js index 31f26fe5b66..1649c388b9f 100644 --- a/src/handlers/propTypeCompositionHandler.js +++ b/src/handlers/propTypeCompositionHandler.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import type Documentation from '../Documentation'; diff --git a/src/handlers/propTypeHandler.js b/src/handlers/propTypeHandler.js index 0a1fa2f34a4..33b9682bf9c 100644 --- a/src/handlers/propTypeHandler.js +++ b/src/handlers/propTypeHandler.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import type Documentation from '../Documentation'; diff --git a/src/main.js b/src/main.js index 642b2a28c97..d2786d1273b 100644 --- a/src/main.js +++ b/src/main.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import * as allHandlers from './handlers'; diff --git a/src/parse.js b/src/parse.js index cafbed1c4bb..0e964e26289 100644 --- a/src/parse.js +++ b/src/parse.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/resolver/__tests__/findAllComponentDefinitions-test.js b/src/resolver/__tests__/findAllComponentDefinitions-test.js index cac532294cd..37fd267a150 100644 --- a/src/resolver/__tests__/findAllComponentDefinitions-test.js +++ b/src/resolver/__tests__/findAllComponentDefinitions-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/resolver/__tests__/findAllExportedComponentDefinitions-test.js b/src/resolver/__tests__/findAllExportedComponentDefinitions-test.js index f03bd882bc9..b6c54ba12d5 100644 --- a/src/resolver/__tests__/findAllExportedComponentDefinitions-test.js +++ b/src/resolver/__tests__/findAllExportedComponentDefinitions-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/resolver/__tests__/findExportedComponentDefinition-test.js b/src/resolver/__tests__/findExportedComponentDefinition-test.js index 21597978cf6..ecc1283f61d 100644 --- a/src/resolver/__tests__/findExportedComponentDefinition-test.js +++ b/src/resolver/__tests__/findExportedComponentDefinition-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/resolver/findAllComponentDefinitions.js b/src/resolver/findAllComponentDefinitions.js index 235b5d07680..47121531dcc 100644 --- a/src/resolver/findAllComponentDefinitions.js +++ b/src/resolver/findAllComponentDefinitions.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import isReactComponentClass from '../utils/isReactComponentClass'; diff --git a/src/resolver/findAllExportedComponentDefinitions.js b/src/resolver/findAllExportedComponentDefinitions.js index e634845709d..e032b567653 100644 --- a/src/resolver/findAllExportedComponentDefinitions.js +++ b/src/resolver/findAllExportedComponentDefinitions.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/resolver/findExportedComponentDefinition.js b/src/resolver/findExportedComponentDefinition.js index f0ff0acad36..eaa48931c86 100644 --- a/src/resolver/findExportedComponentDefinition.js +++ b/src/resolver/findExportedComponentDefinition.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/resolver/index.js b/src/resolver/index.js index 696ffb1ace3..3e51412523d 100644 --- a/src/resolver/index.js +++ b/src/resolver/index.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import findAllComponentDefinitions from './findAllComponentDefinitions'; diff --git a/src/types.js b/src/types.js index 3c0ce5df486..59b3c9c95f3 100644 --- a/src/types.js +++ b/src/types.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/docblock-test.js b/src/utils/__tests__/docblock-test.js index 82479185cac..954973c344b 100644 --- a/src/utils/__tests__/docblock-test.js +++ b/src/utils/__tests__/docblock-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/getClassMemberValuePath-test.js b/src/utils/__tests__/getClassMemberValuePath-test.js index 535315ef937..703ab665302 100644 --- a/src/utils/__tests__/getClassMemberValuePath-test.js +++ b/src/utils/__tests__/getClassMemberValuePath-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/getFlowType-test.js b/src/utils/__tests__/getFlowType-test.js index 4b6c39c6f5d..1e2b129cd91 100644 --- a/src/utils/__tests__/getFlowType-test.js +++ b/src/utils/__tests__/getFlowType-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/getMemberExpressionRoot-test.js b/src/utils/__tests__/getMemberExpressionRoot-test.js index 77eaad8d472..02358ba44bf 100644 --- a/src/utils/__tests__/getMemberExpressionRoot-test.js +++ b/src/utils/__tests__/getMemberExpressionRoot-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/getMemberExpressionValuePath-test.js b/src/utils/__tests__/getMemberExpressionValuePath-test.js index 86e0f1096eb..088b3def609 100644 --- a/src/utils/__tests__/getMemberExpressionValuePath-test.js +++ b/src/utils/__tests__/getMemberExpressionValuePath-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/getMemberValuePath-test.js b/src/utils/__tests__/getMemberValuePath-test.js index 2ef5e29f340..c17fbf08003 100644 --- a/src/utils/__tests__/getMemberValuePath-test.js +++ b/src/utils/__tests__/getMemberValuePath-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/getMembers-test.js b/src/utils/__tests__/getMembers-test.js index 98c4b03034f..fb4375782f0 100644 --- a/src/utils/__tests__/getMembers-test.js +++ b/src/utils/__tests__/getMembers-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/getMethodDocumentation-test.js b/src/utils/__tests__/getMethodDocumentation-test.js index 2dc9a3224f0..d0f6f6d36d1 100644 --- a/src/utils/__tests__/getMethodDocumentation-test.js +++ b/src/utils/__tests__/getMethodDocumentation-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/getParameterName-test.js b/src/utils/__tests__/getParameterName-test.js index 92da16061fa..60f1e571fef 100644 --- a/src/utils/__tests__/getParameterName-test.js +++ b/src/utils/__tests__/getParameterName-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/getPropType-test.js b/src/utils/__tests__/getPropType-test.js index b52fc425d3f..41e5b705749 100644 --- a/src/utils/__tests__/getPropType-test.js +++ b/src/utils/__tests__/getPropType-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/getPropertyValuePath-test.js b/src/utils/__tests__/getPropertyValuePath-test.js index 04dc419ed86..19532354b13 100644 --- a/src/utils/__tests__/getPropertyValuePath-test.js +++ b/src/utils/__tests__/getPropertyValuePath-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/getTypeAnnotation-test.js b/src/utils/__tests__/getTypeAnnotation-test.js index 517345ca128..f7d7106b380 100644 --- a/src/utils/__tests__/getTypeAnnotation-test.js +++ b/src/utils/__tests__/getTypeAnnotation-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/isExportsOrModuleAssignment-test.js b/src/utils/__tests__/isExportsOrModuleAssignment-test.js index c983c748cbe..ae4062be3f2 100644 --- a/src/utils/__tests__/isExportsOrModuleAssignment-test.js +++ b/src/utils/__tests__/isExportsOrModuleAssignment-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/isReactComponentClass-test.js b/src/utils/__tests__/isReactComponentClass-test.js index dc1ed60d2c0..de9132f7f9e 100644 --- a/src/utils/__tests__/isReactComponentClass-test.js +++ b/src/utils/__tests__/isReactComponentClass-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -57,7 +55,7 @@ describe('isReactComponentClass', () => { var React = require('react'); /** * @class Foo - * @extends React.Component + * @extends React.Component */ class Foo extends Bar {} `).get('body', 1); diff --git a/src/utils/__tests__/isReactComponentMethod-test.js b/src/utils/__tests__/isReactComponentMethod-test.js index 58e0b4ce0c1..9c619df6e6c 100644 --- a/src/utils/__tests__/isReactComponentMethod-test.js +++ b/src/utils/__tests__/isReactComponentMethod-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/isReactCreateClassCall-test.js b/src/utils/__tests__/isReactCreateClassCall-test.js index a1bacc781af..5bc481ac538 100644 --- a/src/utils/__tests__/isReactCreateClassCall-test.js +++ b/src/utils/__tests__/isReactCreateClassCall-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/isRequiredPropType-test.js b/src/utils/__tests__/isRequiredPropType-test.js index 86f0a1f833a..483fb8c6133 100644 --- a/src/utils/__tests__/isRequiredPropType-test.js +++ b/src/utils/__tests__/isRequiredPropType-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/isStatelessComponent-test.js b/src/utils/__tests__/isStatelessComponent-test.js index 245bd3d7809..f81ccfa8151 100644 --- a/src/utils/__tests__/isStatelessComponent-test.js +++ b/src/utils/__tests__/isStatelessComponent-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/match-test.js b/src/utils/__tests__/match-test.js index 25398192372..1711f49c08a 100644 --- a/src/utils/__tests__/match-test.js +++ b/src/utils/__tests__/match-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/normalizeClassDefinition-test.js b/src/utils/__tests__/normalizeClassDefinition-test.js index 3cce01f6d1d..746bb887f4d 100644 --- a/src/utils/__tests__/normalizeClassDefinition-test.js +++ b/src/utils/__tests__/normalizeClassDefinition-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/parseJsDoc-test.js b/src/utils/__tests__/parseJsDoc-test.js index 1845c85edbe..5746ad55240 100644 --- a/src/utils/__tests__/parseJsDoc-test.js +++ b/src/utils/__tests__/parseJsDoc-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/printValue-test.js b/src/utils/__tests__/printValue-test.js index ca53fbbcb55..cc933e681e4 100644 --- a/src/utils/__tests__/printValue-test.js +++ b/src/utils/__tests__/printValue-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/resolveExportDeclaration-test.js b/src/utils/__tests__/resolveExportDeclaration-test.js index 413907b4609..779266b7f55 100644 --- a/src/utils/__tests__/resolveExportDeclaration-test.js +++ b/src/utils/__tests__/resolveExportDeclaration-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/resolveHOC-test.js b/src/utils/__tests__/resolveHOC-test.js index 82cf03e0ccb..b42859e9541 100644 --- a/src/utils/__tests__/resolveHOC-test.js +++ b/src/utils/__tests__/resolveHOC-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/resolveObjectKeysToArray-test.js b/src/utils/__tests__/resolveObjectKeysToArray-test.js index 9b4fc826691..04fa899724a 100644 --- a/src/utils/__tests__/resolveObjectKeysToArray-test.js +++ b/src/utils/__tests__/resolveObjectKeysToArray-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/resolveObjectValuesToArray-test.js b/src/utils/__tests__/resolveObjectValuesToArray-test.js index a0d1112fb45..117024c9947 100644 --- a/src/utils/__tests__/resolveObjectValuesToArray-test.js +++ b/src/utils/__tests__/resolveObjectValuesToArray-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/resolveToModule-test.js b/src/utils/__tests__/resolveToModule-test.js index 1e15cf56abf..73a54c417ae 100644 --- a/src/utils/__tests__/resolveToModule-test.js +++ b/src/utils/__tests__/resolveToModule-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/resolveToValue-test.js b/src/utils/__tests__/resolveToValue-test.js index b2da6c230dd..6964a992e54 100644 --- a/src/utils/__tests__/resolveToValue-test.js +++ b/src/utils/__tests__/resolveToValue-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/__tests__/setPropDescription-test.js b/src/utils/__tests__/setPropDescription-test.js index eee9fdf18a6..aa64c573048 100644 --- a/src/utils/__tests__/setPropDescription-test.js +++ b/src/utils/__tests__/setPropDescription-test.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ diff --git a/src/utils/docblock.js b/src/utils/docblock.js index 27e41f45d34..e8b4452d608 100644 --- a/src/utils/docblock.js +++ b/src/utils/docblock.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/expressionTo.js b/src/utils/expressionTo.js index b739592376e..9c2a3b98c08 100644 --- a/src/utils/expressionTo.js +++ b/src/utils/expressionTo.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ /*eslint no-loop-func: 0, no-use-before-define: 0*/ diff --git a/src/utils/flowUtilityTypes.js b/src/utils/flowUtilityTypes.js index 6fcd0e58125..f2d14b5ac5a 100644 --- a/src/utils/flowUtilityTypes.js +++ b/src/utils/flowUtilityTypes.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import recast from 'recast'; diff --git a/src/utils/getClassMemberValuePath.js b/src/utils/getClassMemberValuePath.js index 1257bc9f986..303e8d70577 100644 --- a/src/utils/getClassMemberValuePath.js +++ b/src/utils/getClassMemberValuePath.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import getNameOrValue from './getNameOrValue'; diff --git a/src/utils/getFlowType.js b/src/utils/getFlowType.js index a75a49400b1..8d2de09fccb 100644 --- a/src/utils/getFlowType.js +++ b/src/utils/getFlowType.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ /* eslint no-use-before-define: 0 */ diff --git a/src/utils/getFlowTypeFromReactComponent.js b/src/utils/getFlowTypeFromReactComponent.js index 743586a4e88..55731fca742 100644 --- a/src/utils/getFlowTypeFromReactComponent.js +++ b/src/utils/getFlowTypeFromReactComponent.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import getTypeAnnotation from '../utils/getTypeAnnotation'; diff --git a/src/utils/getMemberExpressionRoot.js b/src/utils/getMemberExpressionRoot.js index 0bf868064b0..2eb71445697 100644 --- a/src/utils/getMemberExpressionRoot.js +++ b/src/utils/getMemberExpressionRoot.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/getMemberExpressionValuePath.js b/src/utils/getMemberExpressionValuePath.js index f364758a0ab..ab071b0afc4 100644 --- a/src/utils/getMemberExpressionValuePath.js +++ b/src/utils/getMemberExpressionValuePath.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import getNameOrValue from './getNameOrValue'; diff --git a/src/utils/getMemberValuePath.js b/src/utils/getMemberValuePath.js index 7249b962d70..9f810d7d9b8 100644 --- a/src/utils/getMemberValuePath.js +++ b/src/utils/getMemberValuePath.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import getClassMemberValuePath from './getClassMemberValuePath'; diff --git a/src/utils/getMembers.js b/src/utils/getMembers.js index 97f0fa36764..ed5e813489a 100644 --- a/src/utils/getMembers.js +++ b/src/utils/getMembers.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ /* eslint no-labels: 0 */ diff --git a/src/utils/getMethodDocumentation.js b/src/utils/getMethodDocumentation.js index 328c12be653..71633dac777 100644 --- a/src/utils/getMethodDocumentation.js +++ b/src/utils/getMethodDocumentation.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/getNameOrValue.js b/src/utils/getNameOrValue.js index e31229ea024..f70e7d61a04 100644 --- a/src/utils/getNameOrValue.js +++ b/src/utils/getNameOrValue.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import recast from 'recast'; diff --git a/src/utils/getParameterName.js b/src/utils/getParameterName.js index 49dca754965..1244142a4ae 100644 --- a/src/utils/getParameterName.js +++ b/src/utils/getParameterName.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/getPropType.js b/src/utils/getPropType.js index 96f89d322d1..40cc73c1dc4 100644 --- a/src/utils/getPropType.js +++ b/src/utils/getPropType.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ /*eslint no-use-before-define: 0*/ diff --git a/src/utils/getPropertyName.js b/src/utils/getPropertyName.js index adc16e7336f..6d2c3724e63 100644 --- a/src/utils/getPropertyName.js +++ b/src/utils/getPropertyName.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import recast from 'recast'; diff --git a/src/utils/getPropertyValuePath.js b/src/utils/getPropertyValuePath.js index d2931a4fd0b..1b6852e9241 100644 --- a/src/utils/getPropertyValuePath.js +++ b/src/utils/getPropertyValuePath.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import getPropertyName from './getPropertyName'; diff --git a/src/utils/getTypeAnnotation.js b/src/utils/getTypeAnnotation.js index 3f06145fbce..79d82f721c6 100644 --- a/src/utils/getTypeAnnotation.js +++ b/src/utils/getTypeAnnotation.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import recast from 'recast'; diff --git a/src/utils/index.js b/src/utils/index.js index 1368879322a..899d4d4a982 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import * as docblock from './docblock'; diff --git a/src/utils/isExportsOrModuleAssignment.js b/src/utils/isExportsOrModuleAssignment.js index dadc5ae899a..71ab871c90f 100644 --- a/src/utils/isExportsOrModuleAssignment.js +++ b/src/utils/isExportsOrModuleAssignment.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import * as expressionTo from './expressionTo'; diff --git a/src/utils/isReactChildrenElementCall.js b/src/utils/isReactChildrenElementCall.js index fbdd74226f2..9186acb700f 100644 --- a/src/utils/isReactChildrenElementCall.js +++ b/src/utils/isReactChildrenElementCall.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import isReactModuleName from './isReactModuleName'; diff --git a/src/utils/isReactCloneElementCall.js b/src/utils/isReactCloneElementCall.js index a37449a47c0..4bf5fe0c509 100644 --- a/src/utils/isReactCloneElementCall.js +++ b/src/utils/isReactCloneElementCall.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import isReactModuleName from './isReactModuleName'; diff --git a/src/utils/isReactComponentClass.js b/src/utils/isReactComponentClass.js index 6f7e0ed16c5..1df88a5a7c5 100644 --- a/src/utils/isReactComponentClass.js +++ b/src/utils/isReactComponentClass.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/isReactComponentMethod.js b/src/utils/isReactComponentMethod.js index 48f9ee3fd15..b50d193138a 100644 --- a/src/utils/isReactComponentMethod.js +++ b/src/utils/isReactComponentMethod.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/isReactCreateClassCall.js b/src/utils/isReactCreateClassCall.js index 96764a49ee3..443dc91ec28 100644 --- a/src/utils/isReactCreateClassCall.js +++ b/src/utils/isReactCreateClassCall.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import isReactModuleName from './isReactModuleName'; diff --git a/src/utils/isReactCreateElementCall.js b/src/utils/isReactCreateElementCall.js index c5eafa1f9f7..2937da1c743 100644 --- a/src/utils/isReactCreateElementCall.js +++ b/src/utils/isReactCreateElementCall.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import isReactModuleName from './isReactModuleName'; diff --git a/src/utils/isReactForwardRefCall.js b/src/utils/isReactForwardRefCall.js index d2d35b761a9..f6b38221da9 100644 --- a/src/utils/isReactForwardRefCall.js +++ b/src/utils/isReactForwardRefCall.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/isReactModuleName.js b/src/utils/isReactModuleName.js index 655288df746..2b2c0d2288c 100644 --- a/src/utils/isReactModuleName.js +++ b/src/utils/isReactModuleName.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ const reactModules = [ diff --git a/src/utils/isRequiredPropType.js b/src/utils/isRequiredPropType.js index cacb43b6ddd..88d45cffe48 100644 --- a/src/utils/isRequiredPropType.js +++ b/src/utils/isRequiredPropType.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/isStatelessComponent.js b/src/utils/isStatelessComponent.js index 147bafb9edc..de9a9c14b2e 100644 --- a/src/utils/isStatelessComponent.js +++ b/src/utils/isStatelessComponent.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/isUnreachableFlowType.js b/src/utils/isUnreachableFlowType.js index e12b83eef53..68350fdc6ca 100644 --- a/src/utils/isUnreachableFlowType.js +++ b/src/utils/isUnreachableFlowType.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/match.js b/src/utils/match.js index 1b1c9b106ba..df81e0e6e09 100644 --- a/src/utils/match.js +++ b/src/utils/match.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ /** diff --git a/src/utils/normalizeClassDefinition.js b/src/utils/normalizeClassDefinition.js index 3b3499c4b14..53b7a31fe65 100644 --- a/src/utils/normalizeClassDefinition.js +++ b/src/utils/normalizeClassDefinition.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/parseJsDoc.js b/src/utils/parseJsDoc.js index 88ed8e06528..baa308fb67d 100644 --- a/src/utils/parseJsDoc.js +++ b/src/utils/parseJsDoc.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/postProcessDocumentation.js b/src/utils/postProcessDocumentation.js index 77af2e85acf..a624ea09fe0 100644 --- a/src/utils/postProcessDocumentation.js +++ b/src/utils/postProcessDocumentation.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/printValue.js b/src/utils/printValue.js index 5c269fd33f0..5523db4348b 100644 --- a/src/utils/printValue.js +++ b/src/utils/printValue.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import recast from 'recast'; diff --git a/src/utils/resolveExportDeclaration.js b/src/utils/resolveExportDeclaration.js index fc18c8e4b37..ae7c535d075 100644 --- a/src/utils/resolveExportDeclaration.js +++ b/src/utils/resolveExportDeclaration.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/resolveFunctionDefinitionToReturnValue.js b/src/utils/resolveFunctionDefinitionToReturnValue.js index 80e227c89f1..87e7cbdc1e2 100644 --- a/src/utils/resolveFunctionDefinitionToReturnValue.js +++ b/src/utils/resolveFunctionDefinitionToReturnValue.js @@ -1,10 +1,8 @@ -/* - * Copyright (c) 2017-present, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow */ diff --git a/src/utils/resolveGenericTypeAnnotation.js b/src/utils/resolveGenericTypeAnnotation.js index 302e93fb9f1..256cc581d8b 100644 --- a/src/utils/resolveGenericTypeAnnotation.js +++ b/src/utils/resolveGenericTypeAnnotation.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import isUnreachableFlowType from '../utils/isUnreachableFlowType'; diff --git a/src/utils/resolveHOC.js b/src/utils/resolveHOC.js index 564aac28801..5fce189d4ad 100644 --- a/src/utils/resolveHOC.js +++ b/src/utils/resolveHOC.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import recast from 'recast'; diff --git a/src/utils/resolveObjectKeysToArray.js b/src/utils/resolveObjectKeysToArray.js index f23865d2eb2..640542ccee6 100644 --- a/src/utils/resolveObjectKeysToArray.js +++ b/src/utils/resolveObjectKeysToArray.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2017, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import recast from 'recast'; diff --git a/src/utils/resolveObjectValuesToArray.js b/src/utils/resolveObjectValuesToArray.js index c1aab89d504..79d5c5f5b99 100644 --- a/src/utils/resolveObjectValuesToArray.js +++ b/src/utils/resolveObjectValuesToArray.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2017, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import recast from 'recast'; diff --git a/src/utils/resolveToModule.js b/src/utils/resolveToModule.js index f280e18d93e..6b3aa94a74f 100644 --- a/src/utils/resolveToModule.js +++ b/src/utils/resolveToModule.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import match from './match'; diff --git a/src/utils/resolveToValue.js b/src/utils/resolveToValue.js index 082972e7296..0028026e48d 100644 --- a/src/utils/resolveToValue.js +++ b/src/utils/resolveToValue.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import recast from 'recast'; diff --git a/src/utils/setPropDescription.js b/src/utils/setPropDescription.js index 1fbe11f699c..41915352f73 100644 --- a/src/utils/setPropDescription.js +++ b/src/utils/setPropDescription.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ import type Documentation from '../Documentation'; diff --git a/src/utils/traverse.js b/src/utils/traverse.js index fcc3e4f0aa7..8e5dd0b87ab 100644 --- a/src/utils/traverse.js +++ b/src/utils/traverse.js @@ -1,13 +1,10 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. +/** + * Copyright (c) Facebook, Inc. and its affiliates. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @flow - * */ type Visitor = (path: NodePath) => any;