фикс ошибок линетера
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
16
src/app.js
16
src/app.js
@ -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;
|
||||
|
||||
@ -102,7 +102,7 @@ class Component {
|
||||
*/
|
||||
next = (eventName, ...args) => {
|
||||
const listeners = this._events[eventName];
|
||||
listeners.forEach(listener => {
|
||||
listeners.forEach((listener) => {
|
||||
listener(...args);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user