Have ideas to improve npm?Join in the discussion! »

    @k.sh/eslint-config

    1.21.0 • Public • Published

    eslint-config

    ESLint config based on Airbnb with added prettier integration.

    npm version Node.js CI License: MIT

    Installation

    • npm i -D @k.sh/eslint-config or yarn add --dev @k.sh/eslint-config

    Usage

    Prettier

    • Create a .prettierrc.js file:
    module.exports = require('@k.sh/eslint-config/prettier');

    ESLint

    • Update .eslintrc.json file:
    {
      "extends": ["@k.sh/eslint-config"],
      "overrides": [
        {
          "files": ["**/*.ts", "**/*.tsx"],
          "extends": ["@k.sh/eslint-config/typescript"]
        }
      ]
    }

    Typescript

    • Update tsconfig.json file:
    {
      "extends": "@k.sh/eslint-config/typescript/config.json"
    }

    Install

    npm i @k.sh/eslint-config

    DownloadsWeekly Downloads

    35

    Version

    1.21.0

    License

    MIT

    Unpacked Size

    9.94 kB

    Total Files

    15

    Last publish

    Collaborators

    • avatar