@vdl-dev/eslint-config-typescript
v1.0.1
Published
ESLint configuration used for Typescript at Vandelanotte.
Downloads
207
Maintainers
Readme
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!
}
}