Airbnb legacy rules are not applying
See original GitHub issueI’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:
- Created 7 years ago
- Comments:10
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Got it. We can close this. Sorry for the trouble and thanks for the clarification.
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.