Coder Social home page Coder Social logo

eslint-config-kael89-ts's Introduction

eslint-config-kael89-ts

⚠️ Note: this repository has been deprecated. Use kael89-eslint instead

ESLint configuration for TypeScript projects

This the base ESLint configuration I use in personal TypeScript projects, as an installable npm package:

✔ Extends the popular Airbnb Style Guide

✔ Uses Prettier for code formatting

✔ Provides additional linting for Jest, React

Usage

  1. Install the package and its minimum required peer dependencies:
npm install -D kael89/eslint-config-kael89-ts#v2.3.1 eslint prettier
  1. Extend this package in your ESLint configuration:
{
  "extends": "kael89-ts"
}

⚠️ If you use a TS configuration file other than the default (tsconfig.json under the project's root), you need to specify its path:

{
  "parserOptions": {
    "project": "ts/tsconfig.dev.json"
  }
}

⚠️ If you get the following error:

Configuration for rule "@typescript-eslint/indent" is invalid

it is a known eslint-config-airbnb-typescript issue, see that link for possible solutions.

👉 For the best linting experience, we suggest including the settings specified in tsconfig.json in your project's TS configuration.


Author: Kostas Karvounis https://codinglicks.com

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.