Indent rule regression after update from v3 to v4
See original GitHub issue-
ESLint Version: “eslint”: “^4.1.1”, “eslint-loader”: “^1.8.0”, “eslint-plugin-angular”: “^3.0.0”,
-
Node Version: v8.1.2
-
npm Version: 5.0.3
What parser (default, Babel-ESLint, etc.) are you using? default
Please show your full configuration:
"indent": ["error", 4, {"SwitchCase": 1}],
What did you do? Please include the actual source code causing the issue.
import angular from 'angular';
module.exports = angular.module('ngMaterial', [
'ng',
require('angular-animate'),
require('angular-aria'),
require('./core'),
require('./backdrop'),
require('./button'),
require('./checkbox'),
require('./content'),
require('./datepicker'),
require('./dialog'),
require('./divider'),
require('./icon'),
require('./input'),
require('./menu'),
require('./menuBar'),
require('./panel'),
require('./radioButton'),
require('./showHide'),
require('./sidenav'),
require('./select'),
require('./switch'),
require('./tabs'),
require('./toast'),
require('./toolbar'),
require('./tooltip'),
require('./virtualRepeat')
])
.name; // <- 32 line
What did you expect to happen? I expect no errors What actually happened? Please include the actual, raw output from ESLint. 32:1 error Expected indentation of 4 spaces but found 0 indent
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Incorrect indenting of ternary with multi-line function ... - GitHub
This is regression is blocking standard/standard#1624, which could have otherwise been resolved by the recent eslint 7.19.0 update.
Read more >How to change indentation in Visual Studio Code?
Select a programming language (for example TypeScript). If Settings menu is opened (since 1.66.0): 4. Press → to place the cursor right beside...
Read more >Visual Studio formatting no longer honors indent_size for ...
[regression] [worked-in:16.2.x] After upgrading to latest 16.3.2 I'm unable to change default indent size for .js javascript files using .editorconfig file.
Read more >Developer Documentation - FFmpeg
There are the following guidelines regarding the indentation in files: Indent size is 4. The TAB character is forbidden outside of Makefiles as...
Read more >Changelog and Migration Guide - Detekt
We added a new ruleset called detekt-rules-ruleauthors containing rules for ... Update plugin com.gradle.enterprise to v3.11.2 - #5406; Update dependency ...
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
yes. it did. https://github.com/standard/standard/pull/921#issuecomment-310211451
No, it’s not possible to do that. However, you can do
MemberExpression: "off"
to ignoreMemberExpression
nodes completely.