Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

How to disable the indent change when using this plugin? #24

Closed
mobilesite opened this issue Mar 30, 2017 · 1 comment
Closed

How to disable the indent change when using this plugin? #24

mobilesite opened this issue Mar 30, 2017 · 1 comment

Comments

@mobilesite
Copy link

when I'm using this plugin to handle the package.json file, I found it changes the indent to a tab while the origin indent of my source file is two spaces. This caused the eslint throw some errors. So, would you please so kind to tell me is there any option to config the indent of output file from rollup-plugin-json?

Rich-Harris added a commit that referenced this issue Jun 3, 2017
Allow custom indentation for default export
@Rich-Harris
Copy link
Contributor

Have added an indent option in version 2.2.0 which allows you to specify two spaces.

As a general rule, though, you might want to exclude generated code from linting — usually linters only run on your source code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants