chore: use js extension (#8804)

This commit is contained in:
jrandolf 2022-08-17 15:40:32 +02:00 committed by GitHub
parent 02e1eea7eb
commit b80beecadf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 10 deletions

View File

@ -1,6 +0,0 @@
module.exports = {
extends: ['../.eslintrc.js'],
rules: {
'import/extensions': 0,
},
};

View File

@ -17,8 +17,8 @@
import {readFile, writeFile} from 'fs/promises'; import {readFile, writeFile} from 'fs/promises';
import rimraf from 'rimraf'; import rimraf from 'rimraf';
import semver from 'semver'; import semver from 'semver';
import {generateDocs} from './internal/custom_markdown_action'; import {generateDocs} from './internal/custom_markdown_action.js';
import {job} from './internal/job'; import {job} from './internal/job.js';
function getOffsetAndLimit( function getOffsetAndLimit(
sectionName: string, sectionName: string,

View File

@ -3,7 +3,7 @@ import esbuild from 'esbuild';
import {mkdir, mkdtemp, readFile, writeFile} from 'fs/promises'; import {mkdir, mkdtemp, readFile, writeFile} from 'fs/promises';
import path from 'path'; import path from 'path';
import rimraf from 'rimraf'; import rimraf from 'rimraf';
import {job} from './internal/job'; import {job} from './internal/job.js';
(async () => { (async () => {
await job('', async ({outputs}) => { await job('', async ({outputs}) => {

View File

@ -15,7 +15,7 @@
*/ */
import {ApiModel} from '@microsoft/api-extractor-model'; import {ApiModel} from '@microsoft/api-extractor-model';
import {MarkdownDocumenter} from './custom_markdown_documenter'; import {MarkdownDocumenter} from './custom_markdown_documenter.js';
export const generateDocs = (jsonPath: string, outputDir: string): void => { export const generateDocs = (jsonPath: string, outputDir: string): void => {
const apiModel = new ApiModel(); const apiModel = new ApiModel();