Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

turn off @typescript-eslint/indent and rely exclusively on indent #1

Closed
wants to merge 1 commit into from
Closed

Conversation

jgravois
Copy link

@jgravois jgravois commented Jun 17, 2020

as requested in: sveltejs/svelte#5031 (comment)

apparently @typescript-eslint/indent has 'myriad problems', so its probably more appropriate to rely solely on 'indent' rule.

more context: sveltejs/svelte#5031 (comment)
related: typescript-eslint/typescript-eslint#1824

apparently @typescript-eslint/indent has 'myriad problems', so its more appropriate to rely solely on 'indent' rule
related: typescript-eslint/typescript-eslint#1824
@benmccann
Copy link
Member

This has been fixed in master and can be closed

@Conduitry
Copy link
Member

Closing in favor of #2.

@Conduitry Conduitry closed this Aug 12, 2020
@jgravois jgravois deleted the patch-1 branch August 17, 2020 16:57
zappen999 added a commit to mybonus-com/eslint-config that referenced this pull request Sep 29, 2020
Indentation rules in TypeScript together with eslint is extremely
complex. Mixing with settings makes this even worse.

Disabling the eslint indentation rule and letting prettier decide what
to do instead.

My specific problem was that eslint and prettier was not consistent
about the indentation of long lines of type-aliases as return-types.
Example of how prettier wants it:

	function example (): Example<
		ThisIsALongTypeT,
		ThisIsAnotherOneT,
		EtcT
	> {
		// ...
	}

Example how eslint wants it (with the indentation rule):

	function example (): Example<
		ThisIsALongTypeT,
		ThisIsAnotherOneT,
		EtcT
		> {
		// ...
	}

Related links:

 - typescript-eslint/typescript-eslint#1824
 - sveltejs/eslint-config#1

After removing this line, prettier does a nice job of indenting it
correctly, and eslint doesn't complain.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants