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
@ensive don't worry about errors; in particular if you deleted the branch, the build will error because there's nothing to check out
Anton Honcharuk
@Ensive
@ljharb addressed your review comments in PR: airbnb/javascript#2017
Jordan Harband
@ljharb
thanks
Ghost
@ghost~57cbaf6040f3a6eec0634f49

Heya, I need to replace this object

klass {
  lockScalingX: true,
  lockScalingY: true,
  lockMovementX: true,
  lockMovementY: true,
  originX: 'center',
  originY: 'center',
  centeredRotation: false,
  }

To this

{
  lockScalingX: true,
  lockScalingY: true,
  lockMovementX: true,
  lockMovementY: true,
  originX: 'center',
  originY: 'center',
  centeredRotation: false,
  }

Need to remove klass. How can i do it?

PeachyPeach
@jairadichoso
Hi, can somebody help me with this?
https://stackoverflow.com/questions/51776060/angular-6-breadcrumb-not-working
I'm getting ERROR TypeError: Cannot read property 'breadcrumb' of undefined
Jordan Harband
@ljharb
@dpnashsh that first one isn't valid syntax, so it looks like maybe you're looking at some kind of debug output
however, this is not a general JS help channel; it's for the airbnb javascript style guide.
PeachyPeach
@jairadichoso
chartjs tick label wont show
autoskip:false wont work
Anton Honcharuk
@Ensive
@ljharb
Thank you for merging my PR. I will check on other issues I might be able to resolve.
Let me know if you think I could help with something particular.
spinningcat
@spinningcat
hey
why it exclude firsdt image in second turn and after https://jsfiddle.net/1zmea9yc/1/
Jordan Harband
@ljharb
@ensive np. i think we could use the most help on enzyme and react-dates - the styleguide doesn't tend to need much contributor help :-)
@spinningcat this isn't a general JS help channel, it's for airbnb's javascript styleguide
superchow
@superchow
<code>var a = Date.now()</code>
Ghost
@ghost~57cbaf6040f3a6eec0634f49
Heya, is there any spreadsheet inline editor using angular js which gives an option to copy and paste the whole row or column. There are many others which gives all the features except copy and pasting data in bulk. I have gone through UI-Grid but this feature is not present there. Anyone worked on such stuff????
Gopal Singh
@gopalsingh
how can we resolve CORB Issue in Chrome ??
Bojan Dimitrovski
@bdimitrovski
hi all! would anyone know how background (or background-image) can be transitioned "painlessly" for FF, IE and the likes? it seems ages passed since webkit browsers started supporting this, but still no sign of native support for gecko and the .. ehrm others with the I word :D
Muhammad
@MuhammadJamaluddin
This is my first time using a style guide in my workflow. I was wondering what is the best way to incorporate Airbnb's style guide within my workflow? should I just refer back to the documentation & read the corresponding section or is there a tool/a configuration file that could help (please elaborate & give details)... Thanks in advance.
Jordan Harband
@ljharb
@muhammadjamaluddin add eslint to CI, and prevent merges unless it passes
Muhammad
@MuhammadJamaluddin
I don't get any eslint errors/warnings when I use function declarations or even mix them with function expressions, any idea why?
Jordan Harband
@ljharb
we don't have that rule enabled right now.
Muhammad
@MuhammadJamaluddin
What about the (7.1 functions) section on the Github's documentation?!
& for future reference, how can I know the "currently enabled rules"?
Jordan Harband
@ljharb
not everything in the guide is linted against.
the linting config is a subset of the guide, generally.
Muhammad
@MuhammadJamaluddin
I see. Thank you, Jordan.
Muhammad
@MuhammadJamaluddin
'morgan' should be listed in the project's dependencies, not devDependencies.eslint(import/no-extraneous-dependencies)
I get this eslint error ^, why this rule is as such (morgan makes sense as a devdependency for me) & how can I overwrite it?
Muhammad
@MuhammadJamaluddin
Also, I'm getting an 'document' is not defined.eslint(no-undef) error because I'm using document.getelementById
Jordan Harband
@ljharb
@muhammadjamaluddin because it's a dev dep, and by default, most files in your repo are considered production code
what file is requiring a dev dep that isn't used in production?
as for document, you have to set browser: true in your env settings, if that applies to your project
Muhammad
@MuhammadJamaluddin
It's my express server file. I'm just using morgan in development, so it made sense to have it in the devdependenies
Yeah, thank you. I've used the env settings & it fixed the document error.
maoshuaihui
@maoshuaihui
hello
FOBABS
@fobabs
I used readLine() to read a number in a JavaScript env it worked but running it in node.js it didn’t run.
Must I use the readline() function for node.js?
Jordan Harband
@ljharb
don’t ever use inline event handlers like that; all JS goes in a separate .js file
tobslob
@tobslob
Hello, can anyone help with this challenge?
Create an application ticTacToeCheck that takes a two dimensional array representing a
finished game of tic-tac-toe (e.g. [["XO-"], ["XXX"], ["XO-"]]).
● X represents player 1 move(s).
● O represents player 2 move(s).
● Dash (-) represents no move(s).
Rules:
  1. Return true if player 1 or player 2 win the game.
    [["XO-"], ["XXO"], ["O-X"]] ➞ true
  2. Return false if nobody won the game.
    [["XXO"], ["OOX"], ["XOO"]] ➞ false
  3. Return "Nobody moved" if nobody made a move.
    [[---], [---], [---]] ➞ "Nobody moved"
  4. Return "No/Incomplete game" if no value was received / all received arrays are void /
    type of any given value is not "array".
    [[], [], []] ➞ "No/Incomplete game"
    [[], []] ➞ "No/Incomplete game"
    [[]], [] ➞ "No/Incomplete game"
    ["XOX", ["XOX"], ["XOO"]] ➞ "No/Incomplete game"
    ["XOX", ["XOX"], []] ➞ "No/Incomplete game"
    undefined ➞ "No/Incomplete game"
  5. Return "Corrupted game" if any values differ from the expected "X", "O", "-".
    [["X"], ["XX"], ["X-"]] ➞ "Corrupted game"
    [["AAA"], ["BBA"], ["ABB"]] ➞ "Corrupted game"
    [["XOX"], ["XOO"], [undefined]] ➞ "Corrupted game"
    [["XXX"], ["XOX"], [""]] ➞ "Corrupted game"
    [["XXX"], ["XOX"], [1,2,3]] ➞ "Corrupted game"
Muhammad
@MuhammadJamaluddin
when I import sub-components into a parent component or any component within a test file to test it, I use the jsxextension in the import statement. That causes eslint to throw this error:
Unexpected use of file extension "jsx" for "./components/Reviews.jsx"eslint(import/extensions)
Why is that?
Jordan Harband
@ljharb
always omit extensions in the path
node looks those up for you.
Muhammad
@MuhammadJamaluddin
node? I'm using import not require
Jordan Harband
@ljharb
you're using babel
which converts it to require.
Muhammad
@MuhammadJamaluddin
I see. didn't know that, so node looks it up to know whether it's a js or a jsx file... right?
Jordan Harband
@ljharb
yes
Muhammad
@MuhammadJamaluddin
Thanks, Jordan ❤