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 does not apply to `Import/ExportDeclaration`

See original GitHub issue

Tell us about your environment

  • ESLint Version: v3.18.0
  • Node Version: v6.10.1
  • npm Version: v3.10.10

What parser (default, Babel-ESLint, etc.) are you using? default

Please show your full configuration:

What did you do? Please include the actual source code causing the issue.

// eslint indent: ['error', 2]
import {
                                    a
} from 'b';

export {
                                    a
} from 'b';

What did you expect to happen?

Expected indentation of 2 spaces but found 4. (indent)

What actually happened? Please include the actual, raw output from ESLint. No errors

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
not-an-aardvarkcommented, Mar 27, 2017

I think we never handled import export for indent. @not-an-aardvark is the re-write handling this?

Yes.

0reactions
not-an-aardvarkcommented, Apr 7, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

ESlint indent import / export statements - Stack Overflow
I've wrote an plugin to do that. $ npm install eslint-plugin-align-import --save-dev. And in your .eslintrc : { "plugins": [ "align-import" ] ...
Read more >
Basic Importing and Exporting - Customs and Border Protection
In carrying out this task, CBP encourages importers/exporters to become familiar with applicable laws and regulations and work together with the CBP Office ......
Read more >
21 CFR Part 1312 -- Importation and Exportation of Controlled ...
(a) No person shall import, or cause to be imported, into the customs territory of the United States from any place outside thereof...
Read more >
Information for Importers & Exporters | U.S. Fish & Wildlife ...
This page contains general information about Import/ Export Regulations. You can find Office of Law Enforcement documents such as Fact Sheets, ...
Read more >
DEA Form 486
INSTRUCTIONS FOR COMPLETING DEA FORM 486. (IMPORT/EXPORT DECLARATION). This form is to be used in notifying DEA of all imports, exports, and international ......
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