Deprecated: use @typescript-eslint
Import your ESLint config into TSLint.
The rule mappings between ESLint and TSLint are provided by tslint-eslint-rules. Thanks!
$ 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
Licensed under the MIT license. Copyright (c) 2018, Teppei Sato