New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-hardcore-fp

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-hardcore-fp

Hardcore ESLint Shareable Config for functional programming

  • 7.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Deprecated in favor of eslint-config-hardcore and its additional hardcore/fp config

How to migrate to eslint-config-hardcore

{
-    "extends": ["hardcore-fp"]
+    "extends": ["hardcore", "hardcore/fp"]
}

Hardcore ESLint Shareable Config for functional programming

Travis CI build status

About

Shareable Configs are designed to work with the extends feature of .eslintrc files.

This config extends the hardcore config and adds rules from eslint-plugin-fp.

This config is designed to be compatible with Douglas Crockford's JSLint.

RulesTotalEnabled
ESLint264241
eslint-plugin-promise1411
eslint-plugin-security1312
eslint-plugin-import4032
eslint-plugin-unicorn4336
eslint-plugin-array-func66
eslint-plugin-optimize-regex11
eslint-plugin-sonarjs2524
eslint-plugin-fp1715
Total423378

Usage

First run this:

npm install eslint-config-hardcore-fp --save-dev

Then, add "extends": "hardcore-fp" to your .eslintrc file and specify your environments:

{
    "extends": "hardcore-fp",
    "env": {
        "node": true,
        "browser": true
    }
}

Note: We omitted the eslint-config- prefix since it is automatically assumed by ESLint.

You can override settings from the shareable config by adding them directly into your .eslintrc file:

{
    "extends": "hardcore-fp",
    "env": {
        "node": true,
        "browser": true
    },
    "rules": {
        "no-console": "off"
    }
}

License

MIT

Keywords

FAQs

Package last updated on 07 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc