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.

Rule 'no-empty-label' was removed

See original GitHub issue

I’m having issues running eslint with "extends": "airbnb". I used the instructions on the npm page, and ran the command:

(
  export PKG=eslint-config-airbnb;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)

which added the following to package.json:

...
devDependencies: {
    "eslint": "^3.13.1",
    "eslint-config-airbnb": "^14.0.0",
    "eslint-plugin-import": "^2.2.0",
    "eslint-plugin-jsx-a11y": "^3.0.2",
    "eslint-plugin-react": "^6.9.0"
  }
...

but, when running eslint, I get an error for: Rule 'no-empty-label' was removed and replaced by: no-labels

If I remove the "extends": "airbnb" section from the .eslintrc file, I don’t get these errors.

Did I do anything wrong?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ljharbcommented, Jan 10, 2017

I highly recommend adding "root": true to all of your repos’ top-level configs.

1reaction
Kufertcommented, Jan 10, 2017

Oh my… please forgive my stupidity… I did not notice that somehow (bad drag and drop?) I had in one of the parent folders I had another .eslintrc where this rule was turned on… Thank you for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rule 'no-empty-label' was removed and replaced by - GitHub
Rule no-empty-label was removed in standard v6 because it was deprecated by eslint , so I think you must have something really funny...
Read more >
no-empty-label - ESLint - Pluggable JavaScript Linter
Disallows labels for anything other than loops and switches. (removed) This rule was removed in ESLint v2.0 and replaced by the no-labels rule....
Read more >
No-empty-label - ESLint - W3cubDocs
no-empty-label: disallow labels for anything other than loops and switches. This rule was removed in ESLint v2.0 and replaced by the no-labels rule....
Read more >
Empty or Missing Form Label - Equalize Digital
An Empty Form Label error is triggered when a <label> tag is present in your form and associated with an input (form field),...
Read more >
Empty containers - Washington State Department of Ecology
The term "empty" applies when you remove all contents of a container by using normal methods. Containers are empty when the following conditions...
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