Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 08:18
    FieryCod commented #1379
  • Jan 30 2019 10:01
    atif089 commented #1379
  • Jan 30 2019 10:01
    atif089 commented #1379
  • Jan 30 2019 10:01
    atif089 commented #1379
  • Jan 30 2019 04:11
    tclindner opened #1998
  • Jan 28 2019 05:21

    ljharb on master

    [eslint config] [base] [patch] … [eslint config] [patch] extend … Merge pull request #1996 from r… (compare)

  • Jan 28 2019 05:21
    ljharb closed #1996
  • Jan 28 2019 04:50
    ljharb synchronize #1996
  • Jan 27 2019 21:45
    ljharb closed #1997
  • Jan 27 2019 21:45

    ljharb on master

    [editorial] [react] fix typo [eslint config] [*] [deps] upda… (compare)

  • Jan 27 2019 21:39
    ljharb synchronize #1997
  • Jan 27 2019 21:39
    ljharb labeled #1997
  • Jan 27 2019 21:39
    ljharb labeled #1997
  • Jan 26 2019 18:14
    ljharb labeled #1996
  • Jan 26 2019 18:14
    ljharb labeled #1996
  • Jan 26 2019 18:13
    ljharb synchronize #1996
  • Jan 26 2019 18:05
    ljharb commented #1996
  • Jan 26 2019 08:55
    telmen opened #1997
  • Jan 24 2019 19:37
    peteclark3 commented #1689
  • Jan 24 2019 17:25
    ljharb commented #747
Jordan Harband
@ljharb
jest is a test runner. Enzyme is a react testing library. You can use any test runner, but you have to use one - and none of them let you test react
and bundle size is irrelevant for tests
Mile Mijatović
@mijatovicmile
Yes, I understand
But I have one issue, because I created app with yarn create react-app ... and by default I got setupTests.js file with import '@testing-library/jest-dom/extend-expect';
I deleted all three default @testing-library... packages
I am not sure how to set up setupTests.js file according to the enzyme test runner instead of default @testing-library...
any advice will be appreciate
Jordan Harband
@ljharb
react-testing-library and enzyme are both react testing libraries. you'd need one or both, combined with something like jest
enzyme's repo has docs with a jest setup guide
Mile Mijatović
@mijatovicmile
Thank you
Bhargav yadati
@bhargavdt3
Any idea, How to get a left position of an element which is in iframe, and both iframe and parent document bodys are set with zoom : 1.2 and zoom 0.9
Vyacheslav
@Voronenko
c
s4cr
@s4cr
hello
Shao Chenyang
@G11Max
Do facebook, Google or some other “big” companies use Domain Driven Design principles developing their applications?
tuerfight
@tuerfight
Is there a way to write dynamic form in play(scala) without using React(or teah like that) just use normal html and js (if possible not use @helper)? For example, a form to let user write setting for servers, we don' t know how many settings they will make so we use a Form(serversetting:List[ServerSetting]) serversetting->list(mapping(id->number,purpose->Text)(ServerSetting.apply)(ServerSetting.unapply)) data structure. In this case, what is the best way to write the html code?
available12
@available12
hello guys i need help..I have a bot Mod for my stream..he is always on in the vps ...there is any way to make the bot join only if steam on..and leave automaticly if it off...is that possible, please help
Jordan Harband
@ljharb
this is a channel for airbnb's styleguide, which is all about using react and server-rendering, so spa, angular, and vue are three inapplicable topics here.
ProXkilleR0
@ProXkilleR0
What kind of website app or tools is mostly demanded by people?I am thinking of creating a finance website but which kind of website may create huge traffic and subscribtions?
Ghost
@ghost~52d5532bed5ab0b3bf053fed
hellooo can I rent my room here os is this just a chat
Jordan Harband
@ljharb
just a chat about airbnb's javascript styleguide
Julian Zhu
@OrangeBorning
Does anybody know a room about Micro frontends
Jordan Harband
@ljharb
no, but this channel is about airbnb's javascript styleguide repo.
therialdeal
@therialdeal
Is there a typescript style guide?
Jordan Harband
@ljharb
airbnb does not have a public one, no
Jordan Harband
@ljharb
@SeanFullstack it's highly inappropriate to post job postings on something that's not a jobs board. i'll delete your posts now, if you continue to do so, you'll be banned.
nice10113
@nice10113
Hello World
Anyone?
abanwa
@abanwa
Hello
Julian Zhu
@OrangeBorning
Does AWS S3 support HTTP2?
Imrān Nazir
@TimeBandit
Hello
Chris
@chris453
hello. is there a a good source for how to use datetimepicker?
Imrān Nazir
@TimeBandit
@chris453 MDN and W3Schools should be a great place to start
Jordan Harband
@ljharb
definitely not w3schools; nobody should ever use that.
Imrān Nazir
@TimeBandit
@ljharb 🤔
Friday Candour
@FridayCandour
Please how do I get the content after using dom parser api
2 replies
lpeltol
@lpeltol
Hi, I have an issue where wrong version of package gets installed. I've added "eslint-config-airbnb": "^18.2.1" to my package.json, but when I look the installed packages from myapp/node_modules/eslint-config-airbnb/package.json, the "eslint-plugin-import" has version "^2.22.1". In the github repository it has "^2.24.2" https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb/package.json. Tried removing yarn cache, removing node_modules and yarn.lock
2 replies
Jordan Harband
@ljharb
yes, that's right
but since they're all semver ranges, you can freely update to whatever you want
with yarn, do yarn update eslint-plugin-import and you'll get the latest
1 reply
Jordan Harband
@ljharb
it shouldn't cause any mismatch, that's not how npm works
yarn update, not yarn add
yarn update should update the existing one in-place in the lockfile
Danilo Silva
@danilosilvadev

Hello guys i have a question about NPM. I created a script to copy files into a dist folder. I'm doing a local private NPM library using verdaccio. But it just copy paste the files without transpile the typescript into JS. Can someone help me with what is missing?

"distribute": "set NODE_ENV=production&&babel src --out-dir dist --copy-files --ignore spec.js,test.js --source-maps"

Jordan Harband
@ljharb
your --ignore might need quotes and a star to glob properly
also what's set for? is this windows?
(also, this is off topic for this channel, which is for airbnb's javascript styleguide)
Danilo Silva
@danilosilvadev
this is an react app
Jordan Harband
@ljharb
not sure how that changes anything
Louis Law
@louiscklaw

2021-10-17_14-56.png

May I know the "name" of these question marks?
Please leave me the name/keywords of this is good enough because it is hard to google for this symbol for me. i can do the rest study/read docs/test myself

thanks in advance...

Jordan Harband
@ljharb
@louiscklaw that's called "optional chaining". (ftr, this is a channel for airbnb's JS styleguide, not a generic JS help channel)