1.0.1 • Published 9 months ago

@vdl-dev/eslint-config-typescript v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Vandelanotte: ESLint configuration for Typescript

A very opinionated ESLint configuration for Typescript used at Vandelanotte.

Usage

Install the package as a devDependency.

# NPM
npm i @vdl-dev/eslint-config-typescript -D

# Yarn
yarn add @vdl-dev/eslint-config-typescript -D

Add the package to the extends-section of your eslint configuration.

When using the typescript configuration, your eslintrc file should extend .ts

Example .eslintrc.ts file:

// .eslintrc.js

module.exports = {
  type: "module",
  env: {
    es6: true,
    node: true,
  },
  extends: [
    '@vdl-dev/eslint-config-typescript',
  ],
  parserOptions: {
    project: './tsconfig.json', // Be sure to define the project!
  }
}

Plugins