Skip to content

Commit

Permalink
Eslint on fallback, adding path to scripts (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonHowellSlavin authored Nov 7, 2023
1 parent 747c59a commit 34f33d1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions blog/scripts/fallback.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable */

var div = document.createElement('div');
div.style.width = '100%';
div.style.position = 'absolute';
Expand Down
2 changes: 1 addition & 1 deletion blog/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import { setLibs, buildAutoBlocks } from './utils.js';

// Add project-wide style path here.
const STYLES = '/styles/styles.css';
const STYLES = '/blog/styles/styles.css';

// Use '/libs' if your live site maps '/libs' to milo's origin.
const LIBS = '/libs';
Expand Down
2 changes: 1 addition & 1 deletion test/blocks/language-menu/language-menu.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from '@esm-bundle/chai';
import { readFile } from '@web/test-runner-commands';

const { default: init } = await import('../../../blocks/language-menu/language-menu.js');
const { default: init } = await import('../../../blog/blocks/language-menu/language-menu.js');

describe('Language Menu', () => {
it('closes on Escape', async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/utils.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from '@esm-bundle/chai';
import { readFile } from '@web/test-runner-commands';
import sinon from 'sinon';
import { setLibs, buildAutoBlocks } from '../../scripts/utils.js';
import { setLibs, buildAutoBlocks } from '../../blog/scripts/utils.js';

describe('Libs', () => {
it('Default Libs', () => {
Expand Down

0 comments on commit 34f33d1

Please sign in to comment.