mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Run TS eslint rules directly with strip-types
Wth node 20.18, we can now run these typescript files directly instead of having to use ts-node
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as eslint from 'eslint';
|
||||
import * as ESTree from 'estree';
|
||||
import type * as ESTree from 'estree';
|
||||
|
||||
/**
|
||||
* Ensures that localization keys in policy blocks match the keys used in nls.localize() calls.
|
||||
@@ -22,7 +22,7 @@ import * as ESTree from 'estree';
|
||||
* The key property ('autoApprove2.description') must match the first argument
|
||||
* to nls.localize() ('autoApprove2.description').
|
||||
*/
|
||||
export = new class PolicyLocalizationKeyMatch implements eslint.Rule.RuleModule {
|
||||
export default new class PolicyLocalizationKeyMatch implements eslint.Rule.RuleModule {
|
||||
|
||||
readonly meta: eslint.Rule.RuleMetaData = {
|
||||
messages: {
|
||||
|
||||
Reference in New Issue
Block a user