tslint-import-eslint-config

1.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i tslint-import-eslint-config

Weekly Downloads

14

Version

1.0.3

License

MIT

Unpacked Size

10.1 kB

Total Files

4

Last publish

Collaborators

  • teppeis