Narcissistic Passion Minified

    eslint-config-healthier

    3.2.0 • Public • Published

    eslint-config-healthier

    Eslint config for https://github.com/KidkArolis/healthier. Healthier is an opinionated linter that only applies non code style related linting rules, which makes it a great companion for code formatters such as Prettier.

    Usage

    npm i -D eslint-config-healthier
    

    Add to your .eslintrc:

    {
      "extends": ["healthier"]
    }

    And optionally, for extra rules for React:

    {
      "extends": ["healthier", "healthier/react"]
    }

    Configuring rules

    Healthier depends on the following plugins for extra rules:

    • eslint-plugin-standard
    • eslint-plugin-node
    • eslint-plugin-import
    • eslint-plugin-promise
    • eslint-plugin-react
    • eslint-plugin-react-hooks

    But to avoid having you to install all of these, it renames the prefix of all of the rules that these plugins provide.

    For example, if you want to turn off react/prop-types rule, you need to instead turn off healthier/prop-types. The same applies for all of the following rules:

    
    standard/* -> healthier/*
    node/* -> healthier/*
    import/* -> healthier/*
    promise/* -> healthier/*
    react/* -> healthier/*
    react-hooks/* -> healthier/*
    

    Install

    npm i eslint-config-healthier

    DownloadsWeekly Downloads

    7

    Version

    3.2.0

    License

    MIT

    Unpacked Size

    7.08 kB

    Total Files

    16

    Last publish

    Collaborators

    • kidkarolis