Skip to content

Commit

Permalink
feat(tpyings): disable tslint for the auto generated file
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Dec 30, 2017
1 parent 6e59ac5 commit 0df5a33
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/create-typedefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ import * as path from 'path'
import {config} from '../index'
const JsonToTS = require('json-to-ts')

const ts = JsonToTS(config, {rootName: 'Config'}).join('\n')
fs.writeFileSync(path.resolve(process.cwd(), 'config/Config.d.ts'), ts)
const file = `Config.d.ts`
const ts = ['/* tslint:disable */']
.concat(JsonToTS(config, {rootName: 'Config'}))
.join('\n')

fs.writeFileSync(path.resolve(process.cwd(), `config/${file}`), ts)

0 comments on commit 0df5a33

Please sign in to comment.