Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Import your ESLint config into TSLint

Notifications You must be signed in to change notification settings

teppeis/tslint-import-eslint-config

Repository files navigation

Deprecated: use @typescript-eslint


tslint-import-eslint-config

Import your ESLint config into TSLint.

NPM version Node.js Version Support Build Status Dependency Status License

The rule mappings between ESLint and TSLint are provided by tslint-eslint-rules. Thanks!

Setup

$ npm i -D tslint-import-eslint-config

Edit your tslint.js

const importESLintConfig = require('tslint-import-eslint-config');

// import from ESLint
module.exports = importESLintConfig({
  extends: ['teppeis/es2018'],
  rules: {
    eqeqeq: ['error', 'always', {null: 'ignore'}]
  }
});

// override TSLint rules
Object.assign(module.exports.rules, {
  'your-rule-1': true,
  'your-rule-2': true,
});

Run with TSLint

$ tslint -c tslint.js *.ts

License

Licensed under the MIT license. Copyright (c) 2018, Teppei Sato

About

Import your ESLint config into TSLint

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •