bencope.land

thoughts, stories and ideas

functional programming

FP Lint

ESLint can help you enforce functional-first standards. Below is a functional eslint setup I like, followed by some explaination. { "root": true, "parser": "@typescript-eslint/parser", "plugins": [ "@typescript-eslint", "fp", "prefer-let" ], "extends": [ "airbnb", "plugin:fp/recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended" ], "rules": { "semi": ["error", "never"], "prefer-const"