фикс ошибок линетера

This commit is contained in:
vigdorov
2020-07-09 12:17:30 +03:00
parent 341fea6608
commit 358f8d5806
7 changed files with 35 additions and 49 deletions

View File

@ -30,7 +30,7 @@ class StorageListApi {
* @returns {number} - Возвращает индекс искомого эллемента по _id
*/
_findIndex = (list, _id) => {
return list.findIndex(item => item._id === _id);
return list.findIndex((item) => item._id === _id);
}
/**

View File

@ -4,7 +4,7 @@ import 'bootstrap';
// ! TODO: 5-14 строчки удалить, после теста компонента
import TestModal from './components/test-modal';
import {TestButton} from './components/test-button';
import TestButton from './components/test-button';
const testModal = new TestModal();
const testButton = new TestButton();
@ -12,17 +12,3 @@ const testButton = new TestButton();
testButton.subscribe('click', () => {
testModal.show();
});
export const foo = function () {
// Sdf
console.log('dfg');
alert('dfg');
};
const x = {
f: 5,
g: 7,
k: 9
};
x + 3;

View File

@ -102,7 +102,7 @@ class Component {
*/
next = (eventName, ...args) => {
const listeners = this._events[eventName];
listeners.forEach(listener => {
listeners.forEach((listener) => {
listener(...args);
});
}