Skip to content

Commit

Permalink
ESLint Qoute style
Browse files Browse the repository at this point in the history
Signed-off-by: Mamatha Bandi <[email protected]>
  • Loading branch information
Mamatha1718 committed Jan 31, 2025
1 parent 1caa5c4 commit bf96d0d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const classDeclarationTypeChanged: ComparerFactory = (context) => ({
if(aType !== bType){
context.report({
key: `class-declaration-type-changed`,
message: `The ${aType} "${a.getName()}" changed from ${aType} to ${bType}`,
message: `The ${aType} '${a.getName()}' changed from ${aType} to ${bType}`,
element: a
});
}
Expand All @@ -69,7 +69,7 @@ const classDeclarationTypeChanged: ComparerFactory = (context) => ({
const isAbstract = (declaration: ClassDeclaration) => declaration.isAbstract();
if (isAbstract(a) !== isAbstract(b)) {
const changeType = isAbstract(a) ? 'abstract to concrete' : 'concrete to abstract';
const changeKey =isAbstract(a) ? `class-declaration-abstract-to-concrete` : `class-declaration-concrete-to-abstract`;
const changeKey = isAbstract(a) ? 'class-declaration-abstract-to-concrete' : 'class-declaration-concrete-to-abstract';
context.report({
key: changeKey,
message: `The class "${a.getName()}" changed from ${changeType}.`,
Expand Down

0 comments on commit bf96d0d

Please sign in to comment.