eslint-plugin-inker
Advanced tools
Comparing version 2.8.3 to 2.8.4
@@ -203,15 +203,2 @@ "use strict"; | ||
message: `Local name should be "${suggestedName}"`, | ||
suggest: [ | ||
{ | ||
desc: `Rename to '${suggestedName}'`, | ||
fix(fixer) { | ||
var _a, _b; | ||
const references = (_b = (_a = context.getDeclaredVariables(prop)[0]) === null || _a === void 0 ? void 0 : _a.references) !== null && _b !== void 0 ? _b : []; | ||
return [ | ||
fixer.replaceText(prop, `${key.name}: ${suggestedName}`), | ||
...references.map(ref => fixer.replaceText(ref.identifier, suggestedName)), | ||
]; | ||
}, | ||
}, | ||
], | ||
}; | ||
@@ -226,16 +213,2 @@ }); | ||
message: `Local name should be "${suggestedName}"`, | ||
suggest: [ | ||
{ | ||
desc: `Rename to '${suggestedName}'`, | ||
fix(fixer) { | ||
var _a, _b; | ||
// eslint-disable-next-line max-len | ||
const references = (_b = (_a = context.getDeclaredVariables(declaration)[0]) === null || _a === void 0 ? void 0 : _a.references) !== null && _b !== void 0 ? _b : []; | ||
return [ | ||
id, | ||
...references.map(ref => ref.identifier), | ||
].map(identifier => fixer.replaceText(identifier, suggestedName)); | ||
}, | ||
}, | ||
], | ||
}, | ||
@@ -242,0 +215,0 @@ ]; |
{ | ||
"name": "eslint-plugin-inker", | ||
"version": "2.8.3", | ||
"version": "2.8.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -257,14 +257,2 @@ import { | ||
message: `Local name should be "${suggestedName}"`, | ||
suggest: [ | ||
{ | ||
desc: `Rename to '${suggestedName}'`, | ||
fix(fixer) { | ||
const references = context.getDeclaredVariables(prop)[0]?.references ?? [] | ||
return [ | ||
fixer.replaceText(prop, `${key.name}: ${suggestedName}`), | ||
...references.map(ref => fixer.replaceText(ref.identifier, suggestedName)), | ||
] | ||
}, | ||
}, | ||
], | ||
} | ||
@@ -280,15 +268,2 @@ }) | ||
message: `Local name should be "${suggestedName}"`, | ||
suggest: [ | ||
{ | ||
desc: `Rename to '${suggestedName}'`, | ||
fix(fixer) { | ||
// eslint-disable-next-line max-len | ||
const references = context.getDeclaredVariables(declaration)[0]?.references ?? [] | ||
return [ | ||
id, | ||
...references.map(ref => ref.identifier), | ||
].map(identifier => fixer.replaceText(identifier, suggestedName)) | ||
}, | ||
}, | ||
], | ||
}, | ||
@@ -295,0 +270,0 @@ ] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58326
1639