{"size": 459, "ext": "js", "max_stars_repo_path": "src/scripts/index.js", "max_stars_repo_name": "yocosaka/My-Todos", "max_stars_repo_stars_event_min_datetime": "2021-02-16T08:02:46.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-10T15:02:44.000Z", "max_issues_repo_path": "src/scripts/index.js", "max_issues_repo_name": "yocosaka/My-Todos", "max_issues_repo_issues_event_min_datetime": "2021-02-16T07:49:01.000Z", "max_issues_repo_issues_event_max_datetime": "2021-02-16T07:49:01.000Z", "max_forks_repo_path": "src/scripts/index.js", "max_forks_repo_name": "yocosaka/My-Todos", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 12, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 30.6, "max_line_length": 72, "alphanum_fraction": 0.7712418301}
import '../scss/main.scss';
import getSavedProjectsFromLS from './mymodules/getSavedProjectsFromLS';
import defaultTodos from './mymodules/defaultTodos';
import { renderProjects } from './mymodules/renderProjects';
import { addProject } from './mymodules/addProject';

const projects = getSavedProjectsFromLS();

if (projects.length === 0) {
  localStorage.setItem('projects', JSON.stringify(defaultTodos));
}

addProject(projects);
renderProjects(projects);
