question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
not-an-aardvarkcommented, Jun 30, 2017

No, it’s not possible to do that. However, you can do MemberExpression: "off" to ignore MemberExpression nodes completely.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found