chore: enforce file extensions on imports (#6202)

* chore: enforce file extensions on imports

To make our output agnostic it should include file extensions in the
output, as per the ESM spec. It's a bit odd for Node packages but makes
it easier to publish a browser build.
This commit is contained in:
Jack Franklin
2020-07-13 10:22:26 +01:00
committed by GitHub
parent 8d6e0d8a79
commit ffec2475d0
79 changed files with 356 additions and 306 deletions

View File

@@ -20,8 +20,8 @@ import {
setupTestBrowserHooks,
setupTestPageAndContextHooks,
itFailsFirefox,
} from './mocha-utils';
import { KeyInput } from '../src/common/USKeyboardLayout';
} from './mocha-utils'; // eslint-disable-line import/extensions
import { KeyInput } from '../lib/cjs/common/USKeyboardLayout.js';
interface Dimensions {
x: number;