tslint-import-eslint-config

Import your ESLint config into TSLint

Usage no npm install needed!

<script type="module">
  import tslintImportEslintConfig from 'https://cdn.skypack.dev/tslint-import-eslint-config';
</script>

README

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