virtual-labs-archive / colloid-and-surface-chemistry-iiith

Other
2 stars 54 forks source link

Expected method shorthand. (object-shorthand) #63

Open BSravanthi opened 6 years ago

BSravanthi commented 6 years ago

ECMAScript 6 provides a concise form for defining object literal methods and properties. This syntax can make defining complex object literals much cleaner. In ECMAScript 6:

//Bad: var foo = { x: function() {}, y: function *() {}, z: z };

//Good: var foo = { x() {}, *y() {}, z };

Please refer to the following link to fix similar issues.

https://app.codacy.com/app/BSravanthi/colloid-and-surface-chemistry-iiith/issues?&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W251bGxdfSx7ImlkIjoiQ2F0ZWdvcnkiLCJ2YWx1ZXMiOlsiQ29kZSBTdHlsZSJdfSx7ImlkIjoiTGV2ZWwiLCJ2YWx1ZXMiOltudWxsXX0seyJpZCI6IlBhdHRlcm4iLCJ2YWx1ZXMiOlsxNjE5XX0seyJ2YWx1ZXMiOltdfV0=

Pallavi98 commented 6 years ago

my commit id's: 83b8233 f9945cf

koushik1298 commented 6 years ago

Valid fix @Pallavi98

SakethMattupalli commented 6 years ago

Valid fix @Pallavi98

VINEETHREDDYSHERI commented 6 years ago

Valid fix @Pallavi98

samhithavootkoor commented 5 years ago

commit id : 985e600

ShivaniKomandury commented 5 years ago

valid fix @Pallavi98

thecoderxman commented 5 years ago

Validated-1 @samhithavootkoor