Integrate Prettier in to Stylelint and ESLint

This commit is contained in:
2019-03-09 21:10:41 +00:00
parent 2248cf1c8d
commit 4e0082b3f3
24 changed files with 496 additions and 730 deletions

View File

@@ -1,30 +1,31 @@
import Menu from './menu';
import Navigation from './navigation';
import Image from './image';
import ReplyToComment from './reply-to-comment';
import Menu from "./menu";
import Navigation from "./navigation";
import Image from "./image";
import ReplyToComment from "./reply-to-comment";
const windy = {
images: [],
};
export default function init() {
Array.prototype.slice.call(document.querySelectorAll('img'))
.forEach((image) => {
Array.prototype.slice
.call(document.querySelectorAll("img"))
.forEach(image => {
const img = new Image(image);
img.start();
windy.images.push(img);
});
windy.menu = new Menu({
container: document.querySelector('.menu'),
container: document.querySelector(".menu"),
});
windy.navigation = new Navigation({
container: document.querySelector('.nav'),
container: document.querySelector(".nav"),
menu: windy.menu,
});
windy.menu.init();
windy.navigation.init();
windy.comments = new ReplyToComment({
form: document.querySelector('.comments__foot'),
links: document.querySelectorAll('.comment__reply'),
form: document.querySelector(".comments__foot"),
links: document.querySelectorAll(".comment__reply"),
});
}