Neurological Phenomenon Multiplexer

    @condorhero/eslint-config-react

    0.1.5 • Public • Published

    @condorhero/eslint-config-react

    Note: The code comes from @antfu/eslint-config

    APE LOGO
    My ESLint config presets

    NPM version NPM Downloads
    GitHub stars

    • Double quotes, must semi
    • Auto fix for formatting (aimed to be used standalone without Prettier)
    • JavaScript, TypeScript, React out-of-box
    • Lint also for json, yaml, markdown
    • Sorted imports, dangling commas for cleaner commit diff
    • Reasonable defaults, best practices, only one-line of config

    Usage

    Install

    pnpm add -D eslint @condorhero/eslint-config-react
    
    # or with npm
    npm install -D eslint @condorhero/eslint-config-react

    Config

    For example .eslintrc file:

    {
      "extends": "@condorhero/eslint-config-react"
    }

    You don't need .eslintignore normally as it has been provided by the preset.

    Add script for package.json

    For example:

    {
      "scripts": {
        "lint": "eslint ."
      }
    }

    Config VS Code auto fix

    Create .vscode/settings.json

    {
      "prettier.enable": false,
      "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
      }
    }

    License

    MIT

    Install

    npm i @condorhero/eslint-config-react

    DownloadsWeekly Downloads

    1

    Version

    0.1.5

    License

    MIT

    Unpacked Size

    6.59 kB

    Total Files

    4

    Last publish

    Collaborators

    • condorhero