virtual-labs-archive / physical-chemistry-iiith

Other
1 stars 64 forks source link

Expected method shorthand. (object-shorthand) #46

Open BSravanthi opened 5 years ago

BSravanthi commented 5 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/physical-chemistry-iiith/issues?&filters=W3siaWQiOiJMYW5ndWFnZSIsInZhbHVlcyI6W251bGxdfSx7ImlkIjoiQ2F0ZWdvcnkiLCJ2YWx1ZXMiOlsiQ29kZSBTdHlsZSJdfSx7ImlkIjoiTGV2ZWwiLCJ2YWx1ZXMiOltudWxsXX0seyJpZCI6IlBhdHRlcm4iLCJ2YWx1ZXMiOlsxNjE5XX0seyJpZCI6IkF1dGhvciIsInZhbHVlcyI6W251bGxdfSx7InZhbHVlcyI6W119XQ==

AksharaMayreddy commented 5 years ago

commit id : a47f2c50157ee046b793ea841745b701f85e2453

VINEETHREDDYSHERI commented 5 years ago

Valid fix @AksharaMayreddy

samhithavootkoor commented 5 years ago

commit id: 5b06768

somashekhar31 commented 5 years ago

validated-1 fix @samhithavootkoor

niveditareddy commented 5 years ago

Valid fix@AksharaMayreddy