Rule 'no-empty-label' was removed
See original GitHub issueI’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:
- Created 7 years ago
- Comments:8
Top 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 >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
I highly recommend adding
"root": true
to all of your repos’ top-level configs.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!