@k.sh/eslint-config

A set of JavaScript linter and formatter configs

Stats

StarsIssuesVersionUpdatedCreatedSize
@k.sh/eslint-config
101.21.24 months ago3 years agoMinified + gzip package size for @k.sh/eslint-config in KB

Readme

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"
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.