Skip to content

Tsconfig and tslint config presets for AdonisJs projects

Notifications You must be signed in to change notification settings

RomainForks/adonis-preset-ts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adonis Preset Typescript

This module contains the base config files (recommended by the core team) for typescript and tslint to be extended by your AdonisJs typescript projects.

Usage

Install the package from npm registry as follows

npm i -D adonis-preset-ts

# yarn
yarn add -D adonis-preset-ts

and then setup your config files to extend the base config

tsconfig.json

{
  "extends": "./node_modules/adonis-preset-ts/tsconfig",
  "compilerOptions": {
    "types": [
      "@adonisjs/core"
    ],
    "paths": {
      "App/*": [ "./app/*" ],
      "Contracts/*": [ "./contracts/*" ]
    }
  }
}

tslint.json

{
  "extends": [
    "adonis-preset-ts/tslint"
  ],
  "rules": {}
}

About

Tsconfig and tslint config presets for AdonisJs projects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%