1.0.3 • Published 5 years ago

tslint-import-eslint-config v1.0.3

Weekly downloads
229
License
MIT
Repository
github
Last release
5 years ago

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