Add validateIndentation
See original GitHub issueMy team uses 4 spaces per indentation. It would be nice to have a linter to check that indentation is correct. Something along the lines of the following (with suggested defaults):
validateIndentation
syntax
"validateIndentation": {
"enabled": true,
"style": "spaces",
"quantity": 4
}
options
style (string)
- spaces (default)
- tabs
quantity (integer) number of spaces/tabs per indentation
- 2 (default)
- user defined value
Issue Analytics
- State:
- Created 8 years ago
- Reactions:9
- Comments:17 (16 by maintainers)
Top Results From Across the Web
validateIndentation rule - JSCS
validateIndentation. Validates indentation for switch statements and block statements. Types: Integer , String or Object. Values:.
Read more >validateIndentation doesn't expect indentation on method ...
fix incoming tomorrow. Basically, all callExpression indentation validation is being removed and added to a separate rule. It was tacked on to ...
Read more >Expected indentation of 4 characters - node.js - Stack Overflow
If you want to have an indentation of 2 spaces, you should change "validateIndentation": 4, to "validateIndentation": 2,.
Read more >jscs | Yarn - Package Manager
... jQuery : add validateIndentation rule (Oleg Gaidarenko) ... Preset: Add validate indentation rule for Yandex (Gunnar Lium); Preset: node-style-guide ...
Read more >Perfect code, zero effort - Gleb Bahmutov
Here is how to have perfectly styled JavaScript code with zero effort. Add JavaScript Code Style to your project npm install --save-dev jscs ......
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 recently got a file that looks something like this
Maybe newlines and all properties on top should be in this linter as well? Or separate?
@kaiyoma Yes, I’m afraid this is the closest we are. If you got the time and are willing, a PR for this would be greatly appreciated!