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
Sedulla Jafarli
@Sedulla
hi there, what's going on
Lucia Cerchie
@Cerchie
Hi everybody! I'm interested in the history of the style guide. Who began writing it, and with what purpose? What role does it play within the Airbnb org today?
Jordan Harband
@ljharb
an engineer began writing it in 2013 i think
the purpose was to document what airbnb does internally, and then to share that publicly
i took over managing it in 2015
when i left in 2019, airbnb was still using it internally, but with some modifications related to prettier and typescript that have not yet been published externally.
Jordan Harband
@ljharb
note this is the channel to talk about Airbnb’s JavaScript styleguide, so that’s not on topic :-)
Lucia Cerchie
@Cerchie
My apologies Jordan, I meant to ask the question with respect to Airbnb's JavaScript style guide, but I left that implicit
Thanks for the answer anyhow!
Jordan Harband
@ljharb
@Cerchie no, you were totally fine; my comment was about some others.
PakDragoon
@PakDragoon
I am working on react project. I am recording a video with react-media-recorder package. Now i want to store the recorded video direcrly into the mongodb. Does anyone have knowledge about where that video blob is getting stored?
Jordan Harband
@ljharb
this is a channel for airbnb's javascript styleguide, not a general help channel
codeboyfriend
@Mkinggrafix
How can I go with JavaScript as a beginner
Jordan Harband
@ljharb
@tonyobanon this is basically spam; please don't do that.
Nikhil Peter Raj
@hav3n
Possibly stupid question but is the airbnb config a replacement for the usual 'eslint:recommended'/'plugin:@typescript-eslint/recommended' ? Or can/should I use them together ?
Jordan Harband
@ljharb
for the former yes
there isn't an official airbnb TS config, so you'll have to determine for yourself how to add on the TS rules.
but always start with airbnb as a base, and don't bother with any other "recommended" configs besides maybe TS-eslint
Nikhil Peter Raj
@hav3n

there isn't an official airbnb TS config

I assume airbnb doesn't officially endorse: https://github.com/iamturns/eslint-config-airbnb-typescript ?

Jordan Harband
@ljharb
correct, it's got nothing to do with airbnb and should never have been named that.
all they did is claim a package name, guaranteeing airbnb can never use it
Nikhil Peter Raj
@hav3n
Ah gotcha, the name did throw me off into thinking that it was airbnb supported...is there a recommendation where I could find better TS configs for airbnb ?
Jordan Harband
@ljharb
not that i know of
Nikhil Peter Raj
@hav3n
Alright I'll look around, thanks!
RetrO_o
@aushwin
Do we have an updated version of airbnb style guide for react and is there a folder architecture to which we can refer to ?
Jordan Harband
@ljharb
@aushwin there's no updated version - https://github.com/airbnb/javascript/tree/HEAD/react is the only one we've ever had - and no, folder architectures aren't in there because it'd be a harmful thing to proscribe.
Patrick Jean Meurer
@potreco
hello everyone, i'm trying to install the Airbnb eslint on a NextJS project with eslint --init but not appear on "popular styleguide". Have any alternative guide to install it on NextJS?
Jordan Harband
@ljharb
what? why wouldn't it appear in the list
airbnb shows up as the first choice in the list for me
Patrick Jean Meurer
@potreco
for me, don't appear, only standard and XO D=
my eslint version is the latest (8.25.0), i'm tried with the 8.19 too, no success
i cannot send a picture here, but i have only two options (standard and XO)
Jordan Harband
@ljharb
what did you answer for all the questions?
Patrick Jean Meurer
@potreco
√ How would you like to use ESLint? · style
√ What type of modules does your project use? · esm
√ Which framework does your project use? · react
√ Does your project use TypeScript? · Yes
√ Where does your code run? · browser
√ How would you like to define a style for your project? · guide
Jordan Harband
@ljharb
that first question is the problem
you always want the third one
a linter should warn you about as much as possible
Patrick Jean Meurer
@potreco
yes, is the third one
"To check syntax, find problems, and enforce code style"
Jordan Harband
@ljharb
ohhh you picked TS, that's why
the airbnb config doesn't support TS
Patrick Jean Meurer
@potreco
wait, what? i'm using TS+Airbnb on others projects
Jordan Harband
@ljharb
i don't mean they can't work together
i mean airbnb doesn't support TS out of the box
you have to manually configure it, or use the utterly unofficial "eslint-config-airbnb-typescript"
Patrick Jean Meurer
@potreco
ah, alright, but in all my others projects, i used yarn eslint --init to configure airbnb with TS
now, neither google nor airbnb appears :(
Jordan Harband
@ljharb
maybe eslint updated things and removed those as options when using TS
Colin Brown
@colinbrown1123
Hi. I am new here and I am also Senior full stack developer.
Khoi Nguyen
@kaza1509
Hello