infctr/eslint-plugin-typescript-sort-keys

Specific type of inline comments causes linter failure

infctr opened this issue · 0 comments

type Type1<TKey extends string> = Partial<{
  // %foo
  foo: boolean;
  /* %baz */ baz: boolean;

  /**
   * %bar
   */
  bar: boolean;
  /* %bam */ bam: boolean;
}> & {/* %foo */
  foo: boolean;

// %baz
  baz: boolean;
  /**
   * %bar
   */
  bar?: boolean;
} & {
    [K in keyof TKey]: boolean;
  };

/* %bam */ bam: boolean; line causes linter to fail with Fix objects must not be overlapped in a report.