eslint-plugin-roblox-ts
Advanced tools
Comparing version 0.0.29 to 0.0.30
"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": { | ||
] | ||
} | ||
} |
59861
1392