2021-07-06 17:41:48 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google LLC All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
2024-09-20 15:23:15 +00:00
|
|
|
* found in the LICENSE file at https://angular.dev/license
|
2021-07-06 17:41:48 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
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.
|
2024-04-01 23:43:36 +00:00
|
|
|
require('ts-node').register({
|
|
|
|
|
project: path.join(__dirname, '../../tsconfig-tslint.json'),
|
|
|
|
|
});
|
2021-07-06 17:41:48 +00:00
|
|
|
|
|
|
|
|
// Add a noop rule so tslint doesn't complain.
|
|
|
|
|
exports.Rule = class Rule extends Lint.Rules.AbstractRule {
|
|
|
|
|
apply() {}
|
|
|
|
|
};
|