-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
v5.0.0 #480
v5.0.0 #480
Conversation
5d41e7c
to
fe1807a
Compare
Codecov Report
@@ Coverage Diff @@
## main #480 +/- ##
==========================================
- Coverage 93.82% 90.20% -3.63%
==========================================
Files 34 46 +12
Lines 794 1215 +421
Branches 201 319 +118
==========================================
+ Hits 745 1096 +351
- Misses 24 51 +27
- Partials 25 68 +43
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
0204648
to
6f8a7a2
Compare
62c2081
to
9566b17
Compare
c4c7401
to
9a50dda
Compare
2bb145b
to
8903f16
Compare
d90c657
to
e174075
Compare
We have quite many projects relying mainly on Perhaps one way would be some simple comparison table that references |
For reference the rules we use are in this repo and more specifically here regarding the EDIT: To elaborate a bit on why we have these settings. We want to keep all "application code" totally immutable and side-effect free. Since (unfortunately) almost every 3rd party package does side-effect, this means we do not have any interaction with 3rd party libraries in "application code". This means combability with 3rd party calls scenario is not a problem for us at all. We do all side-effect and 3rd party calls in a thin "imperative shell", which is a separate package where we can disable the linting. So for us the perfect solution would be if The reason we have |
I think the main job of Where typescript supports readonly modifier/types:
Before,
|
Here's how the new setup will work: const globalVar: { foo: string } = ...; // No error as this doesn't get checked. type MutableFoo = { foo: string }; // No error as declared as mutable
const globalVar: MutableFoo = ...; // No error type Foo = { foo: string }; // Error as not immutable
const globalVar: Foo = ...; // No error. With the new rules, there is currently no way to check inline type declarations. |
08a82cf
to
0bc49c3
Compare
I had a second look now and my understanding is that |
Yeah, that's right (interfaces are also covered by |
The formatting issue should hopefully be fixed now. |
… that suggestion works
Closes #32
Closes #51
Closes #150
Closes #153
Closes #384
Closes #387
Fixes: #468
Fixes: #500
Install
npm i -D eslint-plugin-functional@next
yarn add -D eslint-plugin-functional@next