indent rule issue
See original GitHub issueTell us about your environment
- ESLint Version: 3.7.1
- Node Version: 6.7.0
- npm Version: 3.10.8
What parser (default, Babel-ESLint, etc.) are you using? default
Please show your full configuration:
{
"rules": {
"indent": "error"
}
}
What did you do? Please include the actual source code causing the issue.
JSON
.stringify(
{
test: "test"
}
);
What did you expect to happen? No warnings
What actually happened? Please include the actual, raw output from ESLint. Warnings: 3:9 - Expected indentation of 4 spaces but found 8. (indent) 4:13 - Expected indentation of 8 spaces but found 12. (indent) 5:9 - Expected indentation of 4 spaces but found 8. (indent)
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (8 by maintainers)
Top Results From Across the Web
[indent][meta issue] Problems with the indent rule #1824
TL;DR - the indent rule is broken on TypeScript codebases. Due to bandwidth constraints it will remain broken indefinitely unless the community ...
Read more >indent - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >indent - Rule
Rule: indent. Enforces indentation with tabs or spaces. Rationale. Using only one of tabs or spaces for indentation leads to more consistent editor...
Read more >Cannot fix eslint rule on indenting case statements in switch ...
In the following example, ESLint's indent rule is causing errors in a typescript file.
Read more >Importing 'indent' rule from ESLint configuration ... - YouTrack
Importing 'indent' rule from ESLint configuration should disable conflicting settings. 2. Relates to 1 Is duplicated by 2. Relates to 1 issue (0...
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
No, I think it would be:
because the
1
refers to indent levels, which are multiplied by the indent size (4)./cc @not-an-aardvark the problem is still there https://github.com/eslint/eslint/issues/7320#issuecomment-266686288, what status?