Skip to content

Commit c908cc8

Browse files
committed
Fix lint and build issues.
1 parent ee1b783 commit c908cc8

File tree

101 files changed

+463
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+463
-152
lines changed

api-demo/src/Formatter.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { DocNode, DocExcerpt } from '@microsoft/tsdoc';
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
4+
import { type DocNode, DocExcerpt } from '@microsoft/tsdoc';
25

36
/**
47
* This is a simplistic solution until we implement proper DocNode rendering APIs.

api-demo/src/advancedDemo.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
14
import colors from 'colors';
25
import * as os from 'os';
36
import * as path from 'path';

api-demo/src/simpleDemo.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
14
import colors from 'colors';
25
import * as fs from 'fs';
36
import * as path from 'path';
47
import * as os from 'os';
5-
import { TSDocParser, ParserContext, DocComment } from '@microsoft/tsdoc';
8+
import { TSDocParser, type ParserContext, type DocComment } from '@microsoft/tsdoc';
69
import { Formatter } from './Formatter';
710

811
/**

api-demo/src/start.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
14
import * as colors from 'colors';
25
import * as os from 'os';
36
import { simpleDemo } from './simpleDemo';

eslint-plugin/src/ConfigCache.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
14
import { TSDocConfigFile } from '@microsoft/tsdoc-config';
25
import * as path from 'path';
36

eslint-plugin/src/Debug.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
14
export class Debug {
25
// To debug the plugin, temporarily uncomment the body of this function
36
public static log(message: string): void {

eslint-plugin/src/index.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import * as eslint from 'eslint';
2-
import * as ESTree from 'estree';
3-
import { TSDocParser, TextRange, TSDocConfiguration, ParserContext } from '@microsoft/tsdoc';
4-
import { TSDocConfigFile } from '@microsoft/tsdoc-config';
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
4+
import type * as eslint from 'eslint';
5+
import type * as ESTree from 'estree';
6+
import { TSDocParser, TextRange, TSDocConfiguration, type ParserContext } from '@microsoft/tsdoc';
7+
import type { TSDocConfigFile } from '@microsoft/tsdoc-config';
58

69
import { Debug } from './Debug';
710
import { ConfigCache } from './ConfigCache';

eslint-plugin/src/tests/plugin.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
14
import { RuleTester } from 'eslint';
25
import * as plugin from '../index';
36

playground/src/App.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
14
import * as React from 'react';
25
import { PlaygroundView } from './PlaygroundView';
36

playground/src/CodeEditor.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
14
import * as React from 'react';
25
import type * as monacoEditor from 'monaco-editor';
36
import * as tsdoc from '@microsoft/tsdoc';

0 commit comments

Comments
 (0)