You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/eslint-plugin/docs/rules/type-annotation-spacing.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ This rule has an object option:
41
41
-`"before": true`, (default for arrow) requires a space before the colon/arrow.
42
42
-`"after": true`, (default) requires a space after the colon/arrow.
43
43
-`"after": false`, disallows spaces after the colon/arrow.
44
-
-`"overrides"`, overrides the default options for type annotations with `colon` (e.g. `const foo: string`) and function types with `arrow` (e.g. `type Foo = () => {}`).
44
+
-`"overrides"`, overrides the default options for type annotations with `colon` (e.g. `const foo: string`) and function types with `arrow` (e.g. `type Foo = () => {}`). Additionally allows granular overrides for `variable` (`const foo: string`),`parameter` (`function foo(bar: string) {...}`),`property` (`interface Foo { bar: string }`) and `returnType` (`function foo(): string {...}`) annotations.
0 commit comments