Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indention error on nested unordered lists #9999

Closed
poorpaddy opened this issue Feb 21, 2018 · 1 comment
Closed

Indention error on nested unordered lists #9999

poorpaddy opened this issue Feb 21, 2018 · 1 comment
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion triage An ESLint team member will look at this issue soon

Comments

@poorpaddy
Copy link

poorpaddy commented Feb 21, 2018

Tell us about your environment

  • ESLint Version: 4.18.1
  • Node Version: 8.9.1
  • npm Version: 5.6.0

What parser (default, Babel-ESLint, etc.) are you using?
babel-eslint: 8.2.2

Please show your full configuration:

Configuration
{
  "extends": [
    "eslint-config-semistandard",
    "plugin:jsx-a11y/recommended"
  ],
  "plugins": [
    "react",
    "chai-friendly",
    "jsx-a11y",
    "jasmine"
  ],
  "parser": "babel-eslint",
  "parserOptions": {
    "ecmaVersion": 6,
    "sourceType": "module",
    "ecmaFeatures": {
      "jsx": true,
      "classes": true,
      "es6": true
    }
  },
  "rules": {
    "no-unused-expressions": 0,
    "chai-friendly/no-unused-expressions": 2,
    "react/jsx-uses-vars": 2,
    "react/jsx-filename-extension": [
      1, { "extensions": [".js", ".jsx"] }
    ],
    "react/jsx-uses-react": 1
  },
  "globals": {
    "localStorage": true,
    "describe": true,
    "browser": true,
    "expect": true,
    "retryDescribe": true,
    "it": true,
    "beforeEach": true,
    "afterEach": true,
    "NODE_ENV": true,
    "IMG_CDN": true
  }
}

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

/* Not the actual indentions from error */
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eu nunc eget dolor pharetra mollis.
  <ul>
    <li>Curabitur aliquam nibh mi, at molestie nunc elementum non. Nunc nunc elit, varius sed cursus ut, dictum at odio. Sed cursus dui a dolor interdum, facilisis cursus lorem iaculis.</li>
    <li>Fusce a volutpat augue. Integer condimentum nulla ipsum, sit amet placerat sapien euismod et. Integer quis purus gravida, maximus erat et, accumsan erat.</li>
  </ul>
</li>
yarn lint

What did you expect to happen?
Linting to pass

What actually happened? Please include the actual, raw output from ESLint.

http://eslint.org/docs/rules/indent  Expected indentation of 14 spaces but found 16
  src/pages/faq/components/free-credit-score/index.jsx:16:1
                  <ul>

Error on nested <ul>. Linter wants the <ul> nested at same place as the parent <li> rather than indented 2 spaces.

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Feb 21, 2018
@not-an-aardvark
Copy link
Member

Closing as a duplicate of #9878

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Aug 22, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Aug 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion triage An ESLint team member will look at this issue soon
Projects
None yet
Development

No branches or pull requests

2 participants