Comments (3)
@nickmccurdy another solution is to recommend users us the Validation applicative function instead of asserts.
from eslint-plugin-fp.
Thanks for the link. I've used applicatives in Haskell, and while it's a great pattern for general purpose pure functional programming, I'm concerned that this works against the much more imperative styles of almost all popular JavaScript testing frameworks (Mocha, Jasmine, Jest, Ava, Tape). I could use this pattern in my implementation, but I would need to use a test framework that only uses applicatives and pure results (which as far as I'm aware doesn't exist yet, though I've been experimenting with one. One could write their own testing infrastructure from scratch to meet these rules, but I feel like that's a lot of work for a linting library to impose.
What do you think about my possible solutions? I just converted them to a numbered list.
from eslint-plugin-fp.
@nickmccurdy I like your option 3, but this package seem to be unmaintained
Option 1 is also okayish.
from eslint-plugin-fp.
Related Issues (20)
- non-mutating slice reverse HOT 1
- Add more options for `no-unused-expression` rule HOT 1
- no-nil false positive
- merge eslint-plugin-better rule into eslint-plugin-fp HOT 2
- document the difference between no-unused-expressions
- CI build failing on Node 4
- no-nil false positive on switch statements HOT 1
- no-mutating-assign with any expression HOT 3
- (fp/no-nil) rule for callbacks? HOT 5
- Upgrade Lodash to avoid `npm update` security issue HOT 1
- fp/no-unused-expression for Node debug
- proposal: rule for limit arguments in function call
- fp/no-nil
- no-mutation and HTML DOM
- no-mutating-methods allowedObjects doesn't work if chained
- ESLint v6 HOT 4
- Fails when run in Jest via ESLint Node.js API
- Support ESLint 8.x HOT 3
- `fp/no-unused-expression` with `'use strict'` HOT 1
- `fp/no-throw`: Option to ignore inside `try`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-fp.