question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Airbnb legacy rules are not applying

See original GitHub issue

I’m using Atom 1.12.6. I have successfully installed all necessary modules. My .eslintrc looks like…

{
  "extends": "airbnb-base/legacy",
  "parser": "babel-eslint",
  "env": {
    "jasmine": true,
    "mocha": true
  }
}

When atom lints the following code…

var hello = this;

if (hello !== '') {
  // ...stuff...
}

function user(options) {
  this.name = options.name;
}

user({ name: 'jason' });

The code passes with flying colors. If I run the following code varr name = "asdf"; then the linter will alert to me an error. That makes me thing that ESLint is working. What’s stranger is that if I change .eslintrc to

{
  "extends": "airbnb-base",
  "parser": "babel-eslint",
  "env": {
    "jasmine": true,
    "mocha": true
  }
}

Airbnb non-legacy errors will appear. Am I missing something here? Shouldn’t I expect an error to appear when running the legacy code? For example, Airbnb legacy states that their should never be saved references of this.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
thejourneydudecommented, Dec 1, 2016

Got it. We can close this. Sorry for the trouble and thanks for the clarification.

0reactions
ljharbcommented, Dec 1, 2016

That’s part of the styleguide, but it’s not something that’s linted against. Not all of the style guide is, or even can be, linted against programmatically.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Seattle, WA - Airbnb Help Center
If you rent your place and your listing is not legacy unit, you are no longer eligible to host in Seattle. Local taxes....
Read more >
Airbnb Regulatory Fixer to Depart, Leaving Controversial ...
One enduring legacy, the source said, was that Airbnb, before it began expanding beyond urban apartments and began adding vacation rentals to ...
Read more >
Airbnb & Short-Term Rental Laws & Taxes By State/City [2022]
Need help understanding all the regulations and tax rules when offering your property as a short-term rental? Check out this guide!
Read more >
City of Atlanta cracking down on Airbnb, short term rentals
About 4,000 short-term rentals could soon no longer be allowed to operate in Atlanta because of a new ordinance cracking down on who's...
Read more >
Airbnb Common Issues & Questions - API Integrations
One thing you will notice is that payments (or payouts) do not show on bookings in OwnerRez. This is a limitation of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found