Skip to content

Commit

Permalink
feat: Added rule objectTypeCurlySpacing (#464)
Browse files Browse the repository at this point in the history
* feat: Added rule objectTypeCurlySpacing

* docs: generate new README

* chore: add tests

* chore: add more tests + ran create-readme to update docs

* chore: add valid tests

Co-authored-by: Angelica Bocanegra <angelica.bocanegra@tabcorp.com.au>
  • Loading branch information
angelica-bocanegra and Angelica Bocanegra committed Feb 23, 2021
1 parent 204571f commit cd40053
Show file tree
Hide file tree
Showing 7 changed files with 623 additions and 66 deletions.
1 change: 1 addition & 0 deletions .README/README.md
Expand Up @@ -171,6 +171,7 @@ When `true`, only checks files with a [`@flow` annotation](http://flowtype.org/d
{"gitdown": "include", "file": "./rules/no-types-missing-file-annotation.md"}
{"gitdown": "include", "file": "./rules/no-unused-expressions.md"}
{"gitdown": "include", "file": "./rules/no-weak-types.md"}
{"gitdown": "include", "file": "./rules/object-type-curly-spacing.md"}
{"gitdown": "include", "file": "./rules/object-type-delimiter.md"}
{"gitdown": "include", "file": "./rules/require-compound-type-alias.md"}
{"gitdown": "include", "file": "./rules/require-exact-type.md"}
Expand Down
15 changes: 15 additions & 0 deletions .README/rules/object-type-curly-spacing.md
@@ -0,0 +1,15 @@
### `object-type-curly-spacing`

_The `--fix` option on the command line automatically fixes problems reported by this rule._

This rule enforces consistent spacing inside braces of object types.

#### Options

The rule has a string option:

* `"never"` (default): disallows spacing inside of braces.
* `"always"`: requires spacing inside of braces.


<!-- assertions objectTypeCurlySpacing -->

0 comments on commit cd40053

Please sign in to comment.