package
ESLint rules for functional programming
npm install eslint-plugin-fpGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
ESLint rules for functional programming
$ npm install --save-dev eslint eslint-plugin-fpConfigure it in package.json.
{
"name": "my-awesome-project",
"eslintConfig": {
"env": {
"es6": true
},
"plugins": [
"fp"
],
"rules": {
"fp/no-arguments": "error",
"fp/no-class": "error",
"fp/no-delete": "error",
"fp/no-events": "error",
"fp/no-get-set": "error",
"fp/no-let": "error",
"fp/no-loops": "error",
"fp/no-mutating-assign": "error",
"fp/no-mutating-methods": "error",
"fp/no-mutation": "error",
"fp/no-nil": "error",
"fp/no-proxy": "error",
"fp/no-rest-parameters": "error",
"fp/no-this": "error",
"fp/no-throw": "error",
"fp/no-unused-expression": "error",
"fp/no-valueof-field": "error",
"no-var": "error"
}
}
}arguments.class.delete.events module.This plugin exports a recommended configuration that enforces good practices.
To enable this configuration, use the extends property in your package.json.
{
"name": "my-awesome-project",
"eslintConfig": {
"plugins": [
"fp"
],
"extends": "plugin:fp/recommended"
}
}See ESLint documentation for more information about extending configuration files.
MIT © Jeroen Engels
graingert
tagrain@gmail.com
let.Object.assign() with a variable as first argument.null and undefined.Proxy.this.throw.valueOf fields.Estimated unpacked size across 7 packages.
1.4 MB
Includes dependencies.
4 direct · 1 outdated
^4.13.1
4.18.1
^0.1.0
2.0.0
^1.0.0
1.1.0
^1.0.0
1.0.0