mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit enhances the ng-dev and other local scripts to ensure compatibility with Node.js 18.20+. This adjustment is essential for releasing this branch, as it would otherwise lack compatibility with that version. PR Close #55526
21 lines
678 B
JavaScript
21 lines
678 B
JavaScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
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-tslint.json'),
|
|
});
|
|
|
|
// Add a noop rule so tslint doesn't complain.
|
|
exports.Rule = class Rule extends Lint.Rules.AbstractRule {
|
|
apply() {}
|
|
};
|