Prefer default export to make XO happy (#931)
* Comply with prefer-default-export rule for findBySession function * Remove XO's prefer-default-export rule * Comply with prefer-default-export rule for init function * Comply with prefer-default-export rule for getRootGroups function * Comply with prefer-default-export rule for INIT constant * Comply with prefer-default-export rule for isExecutable function * Fix default export for constants * Comply with prefer-default-export rule for last function * Comply with prefer-default-export rule for getColorList function
This commit is contained in:
parent
de5b384ccd
commit
8f28573fc0
16 changed files with 24 additions and 21 deletions
|
|
@ -1,3 +1,3 @@
|
|||
export function last(arr) {
|
||||
export default function last(arr) {
|
||||
return arr[arr.length - 1];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue