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: .README/README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,12 @@ To enable this configuration use the extends property in your `.eslintrc` config
122
122
123
123
See [ESLint documentation](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) for more information about extending configuration files.
124
124
125
+
### Community maintained configurations
126
+
127
+
The following are third-party submitted/ maintained configurations of `eslint-plugin-flowtype`:
_The `--fix` option on the command line automatically fixes problems reported by this rule._
4
+
5
+
Requires use of [`$ReadOnlyArray`](https://github.com/facebook/flow/blob/v0.46.0/lib/core.js#L185) instead of just `Array` or array [shorthand notation](https://flow.org/en/docs/types/arrays/#toc-array-type-shorthand-syntax). `$ReadOnlyArray` is immutable array collection type and the superclass of Array and tuple types in Flow. Use of `$ReadOnlyArray` instead of `Array` can solve some "problems" in typing with Flow (e.g., [1](https://github.com/facebook/flow/issues/3425), [2](https://github.com/facebook/flow/issues/4251)).
6
+
7
+
General reasons for using immutable data structures:
8
+
9
+
* They are simpler to construct, test, and use
10
+
* They help to avoid temporal coupling
11
+
* Their usage is side-effect free (no defensive copies)
0 commit comments