mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 19:25:10 +00:00
linting
This commit is contained in:
@@ -2,10 +2,10 @@ const fs = require('fs');
|
||||
const path = require('path');
|
||||
const chokidar = require('chokidar');
|
||||
const route_manager = require('../route_manager.js');
|
||||
const { src, dest, entry, dev } = require('../config.js');
|
||||
const { src, entry, dev } = require('../config.js');
|
||||
|
||||
function posixify(file) {
|
||||
return file.replace(/[\/\\]/g, '/');
|
||||
return file.replace(/[/\\]/g, '/');
|
||||
}
|
||||
|
||||
function create_app() {
|
||||
|
||||
@@ -74,4 +74,4 @@ module.exports = function create_matchers(files) {
|
||||
});
|
||||
|
||||
return routes;
|
||||
}
|
||||
};
|
||||
@@ -60,7 +60,7 @@ module.exports = function create_watcher() {
|
||||
});
|
||||
}
|
||||
|
||||
watcher = {
|
||||
const watcher = {
|
||||
ready: invalidate(),
|
||||
client: watch_compiler('client'),
|
||||
server: watch_compiler('server'),
|
||||
|
||||
Reference in New Issue
Block a user