Always use the shorthand notation if the function is a method of an object or class `{ foo() { ... } }` or `class bar { foo() { ... } }`
unless it's a callback in which case you a fat arrow function should be used `{ cb: () => { ... } }`
9 lines
111 B
Plaintext
9 lines
111 B
Plaintext
{
|
|
"env": {
|
|
"node": true,
|
|
"mocha": true
|
|
},
|
|
"globals": {
|
|
"chai": true
|
|
}
|
|
} |