daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Mar 24th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const fs = require('fs');
  2. const prependFile = require('prepend-file');
  3.  
  4. const files = [
  5.     'lib/Components/Cells/WorkOrderCondition.jsx',
  6.     'lib/Components/Construction/DataTable/TableFooter.jsx',
  7.     'lib/Components/Construction/NotificationBand/Action.jsx',
  8.     'lib/Components/Construction/ScrollableNav/ArrowButton.jsx',
  9.     'lib/Components/Experiments/WorkOrderCreate/ClientDocuments.jsx',
  10.     'lib/Components/Feature/BlockRatingsList.jsx',
  11.     'lib/Components/Feature/Campaigns/CampaignList.jsx',
  12.     'lib/Components/Feature/Company/AddCoverageTiers.jsx',
  13.     'lib/Components/Feature/CounterOffer/ExpenseForm.jsx',
  14.     'lib/Components/Feature/EditNetworkSettings.jsx',
  15.     'lib/Components/Feature/Globals/ReviewDeliverables/ReviewDeliverables.jsx',
  16.     'lib/Components/Feature/Integrations/Directional/index.jsx',
  17.     'lib/Components/Feature/List/ListMasthead/ListMastheadIcon.jsx',
  18.     'lib/Components/Feature/Navigation/Create/CreateMd/CreateMd.jsx',
  19.     'lib/Components/Feature/Navigation/Hamburger/HamburgerIcon/HamburgerIcon.jsx',
  20.     'lib/Components/Feature/Navigation/IconBubble/IconBubble.jsx',
  21.     'lib/Components/Feature/Navigation/LightMenu/LightMenuItem.jsx',
  22.     'lib/Components/Feature/Navigation/NavActionMenu/MainNavActionMenu.jsx',
  23.     'lib/Components/Feature/Navigation/Search/SearchScreenMd.jsx',
  24.     'lib/Components/Feature/Navigation/User/User.jsx',
  25.     'lib/Components/Feature/Screenings/LearnMore.jsx',
  26.     'lib/Components/Feature/SkillSet/TermList.jsx',
  27.     'lib/Components/Feature/Talent/PoolList.jsx',
  28.     'lib/Components/Feature/User/EditPreferred.jsx',
  29.     'lib/Components/Feature/WorkOrder/DeliverablesMultisite/DeliverablesMultisiteThumb.jsx',
  30.     'lib/Components/Feature/WorkOrder/Description.jsx',
  31.     'lib/Components/Feature/WorkOrder/LocationMultiSite.jsx',
  32.     'lib/Components/Feature/WorkOrder/Overview.jsx',
  33.     'lib/Components/Navigation/HeaderSearch.jsx',
  34.     'lib/Components/Navigation/Top/Top.jsx',
  35. ];
  36.  
  37. files.forEach((file) => {
  38.     prependFile(file, '/* eslint-disable react/button-has-type */\n', function (err) {
  39.         if (err) {
  40.             // Error
  41.         }
  42.  
  43.         // Success
  44.         console.log('The "data to prepend" was prepended to file!');
  45.     });
  46. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top