/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v21.2.13
tools/tslint-rules/tsLoaderRule.js
11 строк
460 B
Paul Gschwendtner
refactor: re-format all tracked files with prettier
18 окт 2021, 21:58
18 окт 2021, 21:58
3704400
Код
Авторство
О чём код?
const path = require('path'); const Lint = require('tslint'); // Custom rule that registers all of the custom rules, written in TypeScript, with ts-node. // This is necessary, because `tslint` and IDEs won't execute any rules that aren't in a .js file. require('ts-node').register({project: path.join(__dirname, '../tsconfig.json')}); // Add a noop rule so tslint doesn't complain. exports.Rule = class Rule extends Lint.Rules.AbstractRule { apply() {} };