Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
feat(lodash-fp): new lodash-fp rules
Browse files Browse the repository at this point in the history
  • Loading branch information
saiichihashimoto committed Aug 20, 2020
1 parent dc9c68c commit eafe870
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 13 deletions.
48 changes: 35 additions & 13 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ module.exports = {
'fp',
'import',
'jsx-a11y',
'lodash-fp',
'no-secrets',
'node',
'promise',
Expand Down Expand Up @@ -375,19 +376,40 @@ module.exports = {
beforeBlockComment: true,
beforeLineComment: false,
}],
'lines-between-class-members': linesBetweenClassMembers,
'max-classes-per-file': 'off',
'max-depth': 'off',
'max-len': 'off',
'max-lines': 'off',
'max-lines-per-function': 'off',
'max-nested-callbacks': 'off',
'max-params': 'off',
'max-statements': 'off',
'max-statements-per-line': ['error', { max: 1 }],
'multiline-comment-style': ['error', 'starred-block'],
'multiline-ternary': ['error', 'always-multiline'],
'new-cap': ['error', {
'lines-between-class-members': linesBetweenClassMembers,
'lodash-fp/consistent-compose': ['warn', 'flow'],
'lodash-fp/consistent-name': ['warn', '_'],
'lodash-fp/no-argumentless-calls': 'error',
'lodash-fp/no-chain': 'error',
'lodash-fp/no-extraneous-args': 'error',
'lodash-fp/no-extraneous-function-wrapping': 'error',
'lodash-fp/no-extraneous-iteratee-args': 'error',
'lodash-fp/no-extraneous-partials': 'error',
'lodash-fp/no-for-each': ['error', { noNative: false }],
'lodash-fp/no-partial-of-curried': 'error',
'lodash-fp/no-single-composition': 'error',
'lodash-fp/no-submodule-destructuring': 'error',
'lodash-fp/no-unused-result': 'error',
'lodash-fp/prefer-compact': 'error',
'lodash-fp/prefer-composition-grouping': 'error',
'lodash-fp/prefer-constant': ['error', { arrowFunctions: false }],
'lodash-fp/prefer-flat-map': 'error',
'lodash-fp/prefer-get': 'warn',
'lodash-fp/prefer-identity': ['error', { arrowFunctions: false }],
'lodash-fp/preferred-alias': ['error', { overrides: [] }],
'lodash-fp/use-fp': 'error',
'max-classes-per-file': 'off',
'max-depth': 'off',
'max-len': 'off',
'max-lines': 'off',
'max-lines-per-function': 'off',
'max-nested-callbacks': 'off',
'max-params': 'off',
'max-statements': 'off',
'max-statements-per-line': ['error', { max: 1 }],
'multiline-comment-style': ['error', 'starred-block'],
'multiline-ternary': ['error', 'always-multiline'],
'new-cap': ['error', {
capIsNew: false,
capIsNewExceptions: ['Immutable.Map', 'Immutable.Set', 'Immutable.List'],
newIsCap: true,
Expand Down
27 changes: 27 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 @@ -51,6 +51,7 @@
"eslint-plugin-jest": "23.20.0",
"eslint-plugin-jest-formatting": "2.0.0",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-lodash-fp": "2.2.0-a1",
"eslint-plugin-no-secrets": "0.6.8",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1",
Expand Down

0 comments on commit eafe870

Please sign in to comment.