Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { api, LightningElement } from "lwc";

export default class Test extends LightningElement {
@api
duplicateProp;
@api
duplicateProp;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"parserOpts": {
"errorRecovery": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { registerDecorators as _registerDecorators, LightningElement, registerComponent as _registerComponent } from "lwc";
import _tmpl from "./test.html";
class Test extends LightningElement {
duplicateProp;
duplicateProp;
/*LWC compiler vX.X.X*/
}
_registerDecorators(Test, {
publicProps: {
duplicateProp: {
config: 0
}
}
});
const __lwc_component_class_internal = _registerComponent(Test, {
tmpl: _tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"message": "LWC1096: Duplicate @api property \"duplicateProp\"."
},
{
"message": "LWC1096: Duplicate @api property \"duplicateProp\"."
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { api, LightningElement } from "lwc";

export default class Test extends LightningElement {
@api
isVisible = true;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"parserOpts": {
"errorRecovery": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { registerDecorators as _registerDecorators, LightningElement, registerComponent as _registerComponent } from "lwc";
import _tmpl from "./test.html";
class Test extends LightningElement {
isVisible = true;
/*LWC compiler vX.X.X*/
}
_registerDecorators(Test, {
publicProps: {
isVisible: {
config: 0
}
}
});
const __lwc_component_class_internal = _registerComponent(Test, {
tmpl: _tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
{
"message": "LWC1099: Boolean public property must default to false."
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { api, LightningElement } from "lwc";

export default class Test extends LightningElement {
@api
onClickHandler;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"parserOpts": {
"errorRecovery": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { registerDecorators as _registerDecorators, LightningElement, registerComponent as _registerComponent } from "lwc";
import _tmpl from "./test.html";
class Test extends LightningElement {
onClickHandler;
/*LWC compiler vX.X.X*/
}
_registerDecorators(Test, {
publicProps: {
onClickHandler: {
config: 0
}
}
});
const __lwc_component_class_internal = _registerComponent(Test, {
tmpl: _tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
{
"message": "LWC1108: Invalid property name \"onClickHandler\". Properties starting with \"on\" are reserved for event handlers."
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { api, LightningElement } from "lwc";

export default class Test extends LightningElement {
@api
dataProperty;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"parserOpts": {
"errorRecovery": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { registerDecorators as _registerDecorators, LightningElement, registerComponent as _registerComponent } from "lwc";
import _tmpl from "./test.html";
class Test extends LightningElement {
dataProperty;
/*LWC compiler vX.X.X*/
}
_registerDecorators(Test, {
publicProps: {
dataProperty: {
config: 0
}
}
});
const __lwc_component_class_internal = _registerComponent(Test, {
tmpl: _tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
{
"message": "LWC1107: Invalid property name \"dataProperty\". Properties starting with \"data\" are reserved attributes."
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { wire, LightningElement } from "lwc";

export default class Test extends LightningElement {
@api class
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"parserOpts": {
"errorRecovery": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { registerDecorators as _registerDecorators, LightningElement, registerComponent as _registerComponent } from "lwc";
import _tmpl from "./test.html";
class Test extends LightningElement {
class;
/*LWC compiler vX.X.X*/
}
_registerDecorators(Test, {
publicProps: {
"class": {
config: 0
}
}
});
const __lwc_component_class_internal = _registerComponent(Test, {
tmpl: _tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"message": "LWC1102: Invalid 'api' decorator usage. Supported decorators (api, wire, track) should be imported from \"lwc\""
},
{
"message": "LWC1110: Invalid property name \"class\". \"class\" is a reserved attribute."
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { LightningElement } from "lwc";

export default class Test extends LightningElement {
async loadComponent() {
const module = await import(123);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"parserOpts": {
"errorRecovery": true
},
"dynamicImports": {
"loader": null,
"strictSpecifier": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import _tmpl from "./test.html";
import { LightningElement, registerComponent as _registerComponent } from "lwc";
class Test extends LightningElement {
async loadComponent() {
const module = await import(123);
}
/*LWC compiler vX.X.X*/
}
const __lwc_component_class_internal = _registerComponent(Test, {
tmpl: _tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
{
"message": "LWC1121: Invalid import. The argument \"123\" must be a stringLiteral for dynamic imports when strict mode is enabled."
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { track, LightningElement } from "lwc";

export default class Test extends LightningElement {
@track
someMethod() {
return 'invalid';
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"parserOpts": {
"errorRecovery": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { registerDecorators as _registerDecorators, LightningElement, registerComponent as _registerComponent } from "lwc";
import _tmpl from "./test.html";
class Test extends LightningElement {
someMethod() {
return 'invalid';
}
/*LWC compiler vX.X.X*/
}
_registerDecorators(Test, {
track: {
someMethod: 1
}
});
const __lwc_component_class_internal = _registerComponent(Test, {
tmpl: _tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
{
"message": "LWC1113: @track decorator can only be applied to class properties."
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { wire, LightningElement } from "lwc";
import { getRecord } from "lightning/uiRecordApi";

export default class Test extends LightningElement {
@wire({ recordId: '$recordId' }, getRecord )
wiredRecord;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"parserOpts": {
"errorRecovery": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { registerDecorators as _registerDecorators, LightningElement, registerComponent as _registerComponent } from "lwc";
import _tmpl from "./test.html";
import { getRecord } from "lightning/uiRecordApi";
class Test extends LightningElement {
wiredRecord;
/*LWC compiler vX.X.X*/
}
_registerDecorators(Test, {
wire: {
wiredRecord: {
dynamic: [],
config: function ($cmp) {
return {};
}
}
}
});
const __lwc_component_class_internal = _registerComponent(Test, {
tmpl: _tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"message": "LWC1097: @wire expects a function identifier as first parameter."
},
{
"message": "LWC1094: @wire expects a configuration object expression as second parameter."
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { wire, LightningElement } from "lwc";
import { getRecord } from "lightning/uiRecordApi";

export default class Test extends LightningElement {
@wire(getRecord, 'invalid')
wiredRecord;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"parserOpts": {
"errorRecovery": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { registerDecorators as _registerDecorators, LightningElement, registerComponent as _registerComponent } from "lwc";
import _tmpl from "./test.html";
import { getRecord } from "lightning/uiRecordApi";
class Test extends LightningElement {
wiredRecord;
/*LWC compiler vX.X.X*/
}
_registerDecorators(Test, {
wire: {
wiredRecord: {
adapter: getRecord,
dynamic: [],
config: function ($cmp) {
return {};
}
}
}
});
const __lwc_component_class_internal = _registerComponent(Test, {
tmpl: _tmpl,
sel: "lwc-test",
apiVersion: 9999999
});
export default __lwc_component_class_internal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
{
"message": "LWC1094: @wire expects a configuration object expression as second parameter."
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { wire, api, LightningElement } from "lwc";
import { getRecord } from "lightning/uiRecordApi";

export default class Test extends LightningElement {
@wire(getRecord, { recordId: '$recordId' })
@api
wiredApiProperty;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"parserOpts": {
"errorRecovery": true
}
}
Loading