mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-15 01:59:57 +00:00
Fix lint issues resulting from switching to airbnb (#94)
* Fix lint issues resulting from switching to airbnb. * Case sensitivity change * Fix lint script to actually lint tsx files
This commit is contained in:
committed by
Jake Archibald
parent
23ea9fad49
commit
835a537c55
@@ -1,7 +1,7 @@
|
||||
import { h, render } from 'preact';
|
||||
import './lib/fix-pmc';
|
||||
import './style';
|
||||
import App from './components/app';
|
||||
import App from './components/App';
|
||||
|
||||
// Find the outermost Element in our server-rendered HTML structure.
|
||||
let root = document.querySelector('#app') || undefined;
|
||||
@@ -15,8 +15,9 @@ if (process.env.NODE_ENV === 'development') {
|
||||
require('preact/debug');
|
||||
|
||||
// When an update to any module is received, re-import the app and trigger a full re-render:
|
||||
module.hot.accept('./components/app', () => {
|
||||
import('./components/app').then(({ default: App }) => {
|
||||
module.hot.accept('./components/App', () => {
|
||||
// tslint:disable-next-line variable-name
|
||||
import('./components/App').then(({ default: App }) => {
|
||||
root = render(<App />, document.body, root);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user