remove quotes from code suggestion

pull/4254/head
burningTyger 5 years ago committed by Conduitry
parent 14154fce36
commit b9368d5de4

@ -472,7 +472,7 @@ export default class Component {
if (variable.writable && !(variable.referenced || variable.referenced_from_script || variable.subscribable)) { if (variable.writable && !(variable.referenced || variable.referenced_from_script || variable.subscribable)) {
this.warn(declarator, { this.warn(declarator, {
code: `unused-export-let`, code: `unused-export-let`,
message: `${this.name.name} has unused export property '${name}'. If it is for external reference only, please consider using \`export const '${name}'\`` message: `${this.name.name} has unused export property '${name}'. If it is for external reference only, please consider using \`export const ${name}\``
}); });
} }
}); });
@ -495,7 +495,7 @@ export default class Component {
if (variable.writable && !(variable.referenced || variable.referenced_from_script || variable.subscribable)) { if (variable.writable && !(variable.referenced || variable.referenced_from_script || variable.subscribable)) {
this.warn(specifier, { this.warn(specifier, {
code: `unused-export-let`, code: `unused-export-let`,
message: `${this.name.name} has unused export property '${specifier.exported.name}'. If it is for external reference only, please consider using \`export const '${specifier.exported.name}'\`` message: `${this.name.name} has unused export property '${specifier.exported.name}'. If it is for external reference only, please consider using \`export const ${specifier.exported.name}\``
}); });
} }
} }

@ -6,7 +6,7 @@
"column": 12, "column": 12,
"line": 8 "line": 8
}, },
"message": "Component has unused export property 'd'. If it is for external reference only, please consider using `export const 'd'`", "message": "Component has unused export property 'd'. If it is for external reference only, please consider using `export const d`",
"pos": 102, "pos": 102,
"start": { "start": {
"character": 102, "character": 102,
@ -21,7 +21,7 @@
"column": 15, "column": 15,
"line": 8 "line": 8
}, },
"message": "Component has unused export property 'e'. If it is for external reference only, please consider using `export const 'e'`", "message": "Component has unused export property 'e'. If it is for external reference only, please consider using `export const e`",
"pos": 105, "pos": 105,
"start": { "start": {
"character": 105, "character": 105,
@ -36,7 +36,7 @@
"column": 18, "column": 18,
"line": 9 "line": 9
}, },
"message": "Component has unused export property 'g'. If it is for external reference only, please consider using `export const 'g'`", "message": "Component has unused export property 'g'. If it is for external reference only, please consider using `export const g`",
"pos": 125, "pos": 125,
"start": { "start": {
"character": 125, "character": 125,
@ -51,7 +51,7 @@
"column": 18, "column": 18,
"line": 10 "line": 10
}, },
"message": "Component has unused export property 'h'. If it is for external reference only, please consider using `export const 'h'`", "message": "Component has unused export property 'h'. If it is for external reference only, please consider using `export const h`",
"pos": 145, "pos": 145,
"start": { "start": {
"character": 145, "character": 145,
@ -66,7 +66,7 @@
"column": 25, "column": 25,
"line": 12 "line": 12
}, },
"message": "Component has unused export property 'j'. If it is for external reference only, please consider using `export const 'j'`", "message": "Component has unused export property 'j'. If it is for external reference only, please consider using `export const j`",
"pos": 187, "pos": 187,
"start": { "start": {
"character": 187, "character": 187,

Loading…
Cancel
Save