Skip to content

Commit

Permalink
Fix #36 Add eslint-plugin-ramda
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgenyOrekhov committed Dec 8, 2019
1 parent 135bac9 commit e98e2e5
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ This config is designed to be compatible with Douglas Crockford's
| [eslint-plugin-json](https://github.com/azeemba/eslint-plugin-json)¹ ² | 1 | **1** |
| **Total: `hardcore`** | 409 | **365** |
| [eslint-plugin-fp](https://github.com/jfmengels/eslint-plugin-fp) | 17 | **15** |
| **Total: `hardcore` + `hardcore/fp`** | 426 | **381** |
| [eslint-plugin-ramda](https://github.com/ramda/eslint-plugin-ramda) | 26 | **24** |
| **Total: `hardcore` + `hardcore/fp`** | 452 | **405** |

¹ eslint-plugin-json actually includes 19 rules, but we consider them as one
"no-invalid-json" rule.
Expand Down
5 changes: 4 additions & 1 deletion disabled-rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,8 @@
{
"allowUseStrict": true
}
]
],

"ramda/compose-pipe-style": "off",
"ramda/prefer-ramda-boolean": "off"
}
30 changes: 28 additions & 2 deletions fp.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"plugins": [
"fp"
"fp",
"ramda"
],

"rules": {
Expand All @@ -27,6 +28,31 @@
"commonjs": true,
"exceptions": []
}
]
],

"ramda/always-simplification": "error",
"ramda/any-pass-simplification": "error",
"ramda/both-simplification": "error",
"ramda/complement-simplification": "error",
"ramda/compose-simplification": "error",
"ramda/cond-simplification": "error",
"ramda/either-simplification": "error",
"ramda/eq-by-simplification": "error",
"ramda/filter-simplification": "error",
"ramda/if-else-simplification": "error",
"ramda/map-simplification": "error",
"ramda/merge-simplification": "error",
"ramda/no-redundant-and": "error",
"ramda/no-redundant-not": "error",
"ramda/no-redundant-or": "error",
"ramda/pipe-simplification": "error",
"ramda/prefer-both-either": "error",
"ramda/prefer-complement": "error",
"ramda/prop-satisfies-simplification": "error",
"ramda/reduce-simplification": "error",
"ramda/reject-simplification": "error",
"ramda/set-simplification": "error",
"ramda/unless-simplification": "error",
"ramda/when-simplification": "error"
}
}
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"eslint-plugin-json": "^2.0.1",
"eslint-plugin-optimize-regex": "^1.1.7",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-ramda": "^2.5.1",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-sonarjs": "^0.5.0",
"eslint-plugin-unicorn": "^14.0.1"
Expand Down

0 comments on commit e98e2e5

Please sign in to comment.