Enforce indentation in member expressions
See original GitHub issueI propose adding { "MemberExpression": 1 }
to the indent
option.
Example of incorrect code:
foo
.bar
.baz()
foo
.bar
.baz()
Examples of correct code:
foo
.bar
.baz()
// Any indentation is permitted in variable declarations and assignments.
var bip = aardvark.badger
.coyote
A small change, but adds more consistency.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:13
- Comments:9 (8 by maintainers)
Top Results From Across the Web
enforce consistent indentation (indent) - ESLint - Breword 文档集合
"FunctionDeclaration" takes an object to define rules for function declarations. ... "FunctionExpression" takes an object to define rules for function expressions ...
Read more >Is there a way to enforce indentation in the .log file? Or a script ...
This simple code is working for me. #include<string.h> #include<iostream> #include <fstream> using namespace std; int main(int argc, ...
Read more >Indentation | IntelliJ IDEA Documentation - JetBrains
Open indentation settings in code style scheme · Click the widget and select Configure Indents for 'Language'. · In the dialog that opens,...
Read more >Enforce exact 4-spaces indentation with Checkstyle
By default, Checkstyle's indentation check only ensures that your line wrapping indentation is at least 4.
Read more >indent | typescript-eslint
Enforce consistent indentation. ... indent. danger. We strongly recommend you do not use this rule or any other formatting linter rules.
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 Free
Top 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
Please, set it to some value!
Different code editors have different default settings for chain indentation when you run their code reformat tool. Lines jump left-right without any rule, and git history gets messed (like in my current project 😢 ).
🗣 Standard 11 is released! Run
npm install standard@latest --save-dev
to update to the latest version. This will also update the version inpackage.json
✨Changelog: https://github.com/standard/standard/blob/master/CHANGELOG.md#1100---2018-02-18