Socket
Socket
Sign inDemoInstall

eslint-plugin-roblox-ts

Package Overview
Dependencies
115
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.29 to 0.0.30

9

out/rules/noPrivateIdentifier.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.noPrivateIdentifier = exports.noPrivateIdentifierName = void 0;
const typescript_1 = require("typescript");
const typescript_1 = __importDefault(require("typescript"));
const rules_1 = require("../util/rules");

@@ -17,2 +20,3 @@ exports.noPrivateIdentifierName = "no-private-identifier";

},
fixable: "code",
messages: {

@@ -29,6 +33,7 @@ privateIdentifierViolation: "Private identifiers are not supported!",

const tsNode = service.esTreeNodeToTSNodeMap.get(node.key);
if (typescript_1.isPrivateIdentifier(tsNode)) {
if (typescript_1.default.isPrivateIdentifier(tsNode)) {
context.report({
node: node,
messageId: "privateIdentifierViolation",
fix: fixer => fixer.replaceText(node.key, `private ${tsNode.escapedText.toString().substring(1)}`),
});

@@ -35,0 +40,0 @@ }

{
"name": "eslint-plugin-roblox-ts",
"version": "0.0.29",
"version": "0.0.30",
"main": "out/index.js",

@@ -30,2 +30,2 @@ "devDependencies": {

]
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc