A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://npmjs.com/package/eslint-plugin-lodash-fp below:

eslint-plugin-lodash-fp - npm

Configure it in package.json.

{

  "name": "my-awesome-project",

  "eslintConfig": {

    "env": {

      "es6": true

    },

    "parserOptions": {

      "ecmaVersion": 7,

      "sourceType": "module"

    },

    "plugins": [

      "lodash-fp"

    ],

    "rules": {

      "lodash-fp/consistent-compose": "off",

      "lodash-fp/consistent-name": [

        "error",

        "_"

      ],

      "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": "off",

      "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": "error",

      "lodash-fp/prefer-identity": [

        "error",

        {

          "arrowFunctions": false

        }

      ],

      "lodash-fp/preferred-alias": "off",

      "lodash-fp/use-fp": "error"

    }

  }

}

To enable this configuration, use the extends property in your package.json.

{

    "name": "my-awesome-project",

    "eslintConfig": {

        "extends": "plugin:lodash-fp/recommended"

    }

}

See ESLint documentation for more information about extending configuration files.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4