Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
add eslint-plugin-fp
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neculau (anu) committed Aug 19, 2017
1 parent 1718826 commit 591c752
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
'./configs/better.js',
'./configs/async-await.js',
'./configs/dependencies.js',
'./configs/fp.js',
'./configs/import.js',
'./configs/lodash.js',
'./configs/no-null.js',
Expand Down
24 changes: 24 additions & 0 deletions configs/fp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
plugins: [
'fp'
],
rules: {
'fp/no-arguments': 'error',
'fp/no-class': 'off',
'fp/no-delete': 'off',
'fp/no-events': 'error',
'fp/no-get-set': 'error',
'fp/no-let': 'off',
'fp/no-loops': 'error',
'fp/no-mutating-assign': 'error',
'fp/no-mutating-methods': 'off',
'fp/no-mutation': 'off',
'fp/no-nil': 'off',
'fp/no-proxy': 'error',
'fp/no-rest-parameters': 'off',
'fp/no-this': 'off',
'fp/no-throw': 'off',
'fp/no-unused-expression': 'off',
'fp/no-valueof-field': 'error'
}
};
1 change: 1 addition & 0 deletions node.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
'./configs/better.js',
'./configs/async-await.js',
'./configs/dependencies.js',
'./configs/fp.js',
'./configs/import.js',
'./configs/lodash.js',
'./configs/no-null.js',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"eslint-plugin-babel": "4.1.1",
"eslint-plugin-better": "0.1.5",
"eslint-plugin-dependencies": "2.4.0",
"eslint-plugin-fp": "2.3.0",
"eslint-plugin-import": "2.6.0",
"eslint-plugin-lodash": "2.4.4",
"eslint-plugin-max-len-2": "0.0.5",
Expand Down

0 comments on commit 591c752

Please sign in to comment.