Giter Site home page Giter Site logo

evgenyorekhov / eslint-config-hardcore-fp Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 122 KB

Hardcore ESLint Shareable Config for functional programming

Home Page: https://www.npmjs.com/package/eslint-config-hardcore-fp

License: MIT License

JavaScript 100.00%
shareable-configs eslint config eslintconfig eslint-config hardcore jslint fp functional-programming functional

eslint-config-hardcore-fp's Introduction

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.

Rules Total Enabled
ESLint 264 241
eslint-plugin-promise 14 11
eslint-plugin-security 13 12
eslint-plugin-import 40 32
eslint-plugin-unicorn 43 36
eslint-plugin-array-func 6 6
eslint-plugin-optimize-regex 1 1
eslint-plugin-sonarjs 25 24
eslint-plugin-fp 17 15
Total 423 378

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

eslint-config-hardcore-fp's People

Contributors

evgenyorekhov avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

eslint-config-hardcore-fp's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.