From 2d5c4542df5730fc4372d1141c604857563b7a09 Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Fri, 25 Aug 2017 11:31:25 -0700 Subject: [PATCH] Update eslintignore and prettier config to ignore UMD builds of React --- .eslintignore | 4 ++-- fixtures/attribute-behavior/src/App.js | 2 +- fixtures/attribute-behavior/src/index.js | 2 +- scripts/prettier/index.js | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.eslintignore b/.eslintignore index c5fc99a28d9a3..388012616529c 100644 --- a/.eslintignore +++ b/.eslintignore @@ -13,8 +13,8 @@ fixtures/ # Ignore built files. build/ coverage/ -scripts/attribute-behavior/public/react-dom.production.min.js -scripts/attribute-behavior/public/react.production.min.js +fixtures/attribute-behavior/public/react-dom.production.min.js +fixtures/attribute-behavior/public/react.production.min.js scripts/bench/benchmarks/**/*.js scripts/bench/remote-repo/ vendor/* diff --git a/fixtures/attribute-behavior/src/App.js b/fixtures/attribute-behavior/src/App.js index 6fee801404a1b..2ac7e1d7f8837 100644 --- a/fixtures/attribute-behavior/src/App.js +++ b/fixtures/attribute-behavior/src/App.js @@ -1417,7 +1417,7 @@ function ResultPopover(props) { hasSameBehavior: props.hasSameBehavior, }, null, - 2, + 2 )} ); diff --git a/fixtures/attribute-behavior/src/index.js b/fixtures/attribute-behavior/src/index.js index cea8e344b982d..da93a3b30f02d 100644 --- a/fixtures/attribute-behavior/src/index.js +++ b/fixtures/attribute-behavior/src/index.js @@ -19,6 +19,6 @@ import './index.css'; ReactDOM.render( React.createElement(App.default), - document.getElementById('root'), + document.getElementById('root') ); })(); diff --git a/scripts/prettier/index.js b/scripts/prettier/index.js index 0fd1e51f87c97..d7dda88a45a20 100644 --- a/scripts/prettier/index.js +++ b/scripts/prettier/index.js @@ -41,8 +41,8 @@ const config = { patterns: ['scripts/**/*.js', 'fixtures/**/*.js'], ignore: [ 'scripts/bench/benchmarks/**', - 'scripts/attribute-behavior/public/react.production.min.js', - 'scripts/attribute-behavior/public/react-dom.production.min.js', + 'fixtures/attribute-behavior/public/react.production.min.js', + 'fixtures/attribute-behavior/public/react-dom.production.min.js', ], options: { 'trailing-comma': 'es5',