chore(common): trigger #373
Errors 244, Warnings 14
Found 244 errors and 14 warnings
Annotations
Check failure on line 13 in prettier/plugin/src/parsers.ts
github-actions / Lint
(@typescript-eslint/no-explicit-any): Unexpected any. Specify a different type.
Unexpected any. Specify a different type.
Raw output
10 |
11 | // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-arguments
> 12 | const preprocess: Parser<any>['preprocess'] = (source, options): string =>
| ^
13 | importSortPreprocess(source, options)
14 |
15 | const parse: Parser['parse'] = async (source, { plugins }) => {
Check failure on line 17 in prettier/plugin/src/parsers.ts
github-actions / Lint
(@typescript-eslint/no-explicit-any): Unexpected any. Specify a different type.
Unexpected any. Specify a different type.
Raw output
14 |
15 | const parse: Parser['parse'] = async (source, { plugins }) => {
> 16 | const plugin: any = plugins.find((p: any) => p.parsers?.typescript)
| ^
17 |
18 | const program = plugin.parsers.typescript.parse(source)
19 |
Check failure on line 17 in prettier/plugin/src/parsers.ts
github-actions / Lint
(@typescript-eslint/no-explicit-any): Unexpected any. Specify a different type.
Unexpected any. Specify a different type.
Raw output
14 |
15 | const parse: Parser['parse'] = async (source, { plugins }) => {
> 16 | const plugin: any = plugins.find((p: any) => p.parsers?.typescript)
| ^
17 |
18 | const program = plugin.parsers.typescript.parse(source)
19 |
Check failure on line 9 in prettier/plugin/src/patch.ts
github-actions / Lint
(@typescript-eslint/no-explicit-any): Unexpected any. Specify a different type.
Unexpected any. Specify a different type.
Raw output
6 | import { format } from 'prettier/standalone'
7 |
> 8 | export const extractPrinter = async (): Promise<any> => {
| ^
9 | let printer
10 |
11 | await format('const n = 5;', {
Check failure on line 14 in prettier/plugin/src/patch.ts
github-actions / Lint
(@typescript-eslint/ban-ts-comment): Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 10 characters or longer.
Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 10 characters or longer.
Raw output
11 | await format('const n = 5;', {
12 | plugins: [
> 13 | // @ts-expect-error any
| ^
14 | estree,
15 | babel,
16 | {
Check failure on line 24 in prettier/plugin/src/patch.ts
github-actions / Lint
(@typescript-eslint/no-explicit-any): Unexpected any. Specify a different type.
Unexpected any. Specify a different type.
Raw output
21 | ...typescript.parsers.typescript,
22 | parse(text, options) {
> 23 | const plugin: any = options.plugins.find((x: any) => x.printers?.estree)
| ^
24 |
25 | printer = plugin.printers.estree
26 |
Check failure on line 24 in prettier/plugin/src/patch.ts
github-actions / Lint
(@typescript-eslint/no-explicit-any): Unexpected any. Specify a different type.
Unexpected any. Specify a different type.
Raw output
21 | ...typescript.parsers.typescript,
22 | parse(text, options) {
> 23 | const plugin: any = options.plugins.find((x: any) => x.printers?.estree)
| ^
24 |
25 | printer = plugin.printers.estree
26 |
Check failure on line 21 in prettier/plugin/src/printers.ts
github-actions / Lint
(@typescript-eslint/ban-ts-comment): Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 10 characters or longer.
Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 10 characters or longer.
Raw output
18 | const specifier = node.specifiers[node.specifiers.length - 1]
19 |
> 20 | // @ts-expect-error
| ^
21 | const offset = specifier.imported ? 8 : 6
22 |
23 | return specifier.loc!.end.column + offset
Check failure on line 24 in prettier/plugin/src/printers.ts
github-actions / Lint
(@typescript-eslint/no-non-null-assertion): Forbidden non-null assertion.
Forbidden non-null assertion.
Raw output
21 | const offset = specifier.imported ? 8 : 6
22 |
> 23 | return specifier.loc!.end.column + offset
| ^
24 | }
25 |
26 | export const print: Printer<Node>['print'] = (path, options, prnt): any => {
Check failure on line 27 in prettier/plugin/src/printers.ts
github-actions / Lint
(@typescript-eslint/no-explicit-any): Unexpected any. Specify a different type.
Unexpected any. Specify a different type.
Raw output
24 | }
25 |
> 26 | export const print: Printer<Node>['print'] = (path, options, prnt): any => {
| ^
27 | const node = path.getNode()
28 |
29 | const plugin: any = options.plugins.find((p: any) => p?.printers?.estree)
Check failure on line 30 in prettier/plugin/src/printers.ts
github-actions / Lint
(@typescript-eslint/no-explicit-any): Unexpected any. Specify a different type.
Unexpected any. Specify a different type.
Raw output
27 | const node = path.getNode()
28 |
> 29 | const plugin: any = options.plugins.find((p: any) => p?.printers?.estree)
| ^
30 |
31 | let result = plugin.printers.estree.print(path, options, prnt)
32 |
Check failure on line 30 in prettier/plugin/src/printers.ts
github-actions / Lint
(@typescript-eslint/no-explicit-any): Unexpected any. Specify a different type.
Unexpected any. Specify a different type.
Raw output
27 | const node = path.getNode()
28 |
> 29 | const plugin: any = options.plugins.find((p: any) => p?.printers?.estree)
| ^
30 |
31 | let result = plugin.printers.estree.print(path, options, prnt)
32 |
Check failure on line 35 in prettier/plugin/src/printers.ts
github-actions / Lint
(@typescript-eslint/ban-ts-comment): Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 10 characters or longer.
Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 10 characters or longer.
Raw output
32 |
33 | if (node?.type === 'ImportDeclaration') {
> 34 | // @ts-expect-error
| ^
35 | result = result.map((part) => {
36 | // @ts-expect-error
37 | if (Array.isArray(part) && part[0] === ' from' && node.alignOffset > 0) {
Check failure on line 37 in prettier/plugin/src/printers.ts
github-actions / Lint
(@typescript-eslint/ban-ts-comment): Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 10 characters or longer.
Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 10 characters or longer.
Raw output
34 | // @ts-expect-error
35 | result = result.map((part) => {
> 36 | // @ts-expect-error
| ^
37 | if (Array.isArray(part) && part[0] === ' from' && node.alignOffset > 0) {
38 | // @ts-expect-error
39 | const fill = Array.apply(0, Array(node.alignOffset)).fill(' ').join('')
Check failure on line 39 in prettier/plugin/src/printers.ts
github-actions / Lint
(@typescript-eslint/ban-ts-comment): Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 10 characters or longer.
Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 10 characters or longer.
Raw output
36 | // @ts-expect-error
37 | if (Array.isArray(part) && part[0] === ' from' && node.alignOffset > 0) {
> 38 | // @ts-expect-error
| ^
39 | const fill = Array.apply(0, Array(node.alignOffset)).fill(' ').join('')
40 |
41 | part[0] = `${fill} from` // eslint-disable-line no-param-reassign
Check warning on line 35 in code/code-changelog/src/changelog.ts
github-actions / Lint
(no-console): Unexpected console statement.
Unexpected console statement.
Raw output
32 | lernaPackage: `${packageName}`,
33 | tagPrefix,
> 34 | debug: debug ? console.debug : undefined,
| ^
35 | warn: console.warn,
36 | append: true,
37 | releaseCount,
Check warning on line 36 in code/code-changelog/src/changelog.ts
github-actions / Lint
(no-console): Unexpected console statement.
Unexpected console statement.
Raw output
33 | tagPrefix,
34 | debug: debug ? console.debug : undefined,
> 35 | warn: console.warn,
| ^
36 | append: true,
37 | releaseCount,
38 | pkg: {
Check failure on line 46 in code/code-changelog/src/changelog.ts
github-actions / Lint
(no-return-await): Redundant use of `await` on a return value.
Redundant use of `await` on a return value.
Raw output
43 |
44 | if (file) {
> 45 | return await this.generateToFile(config, path)
| ^
46 | }
47 |
48 | return this.generateToStdOut(config)
Check failure on line 60 in code/code-changelog/src/changelog.ts
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of a(n) `any` typed value.
Unsafe call of a(n) `any` typed value.
Raw output
57 |
58 | changelogStream.on('data', (chunk) => {
> 59 | newChangelog += chunk.toString()
| ^
60 | })
61 |
62 | changelogStream.on('end', () => resolve(newChangelog))
Check failure on line 63 in code/code-changelog/src/changelog.ts
github-actions / Lint
(@typescript-eslint/no-confusing-void-expression): Returning a void expression from an arrow function shorthand is forbidden. Please add braces to the arrow function.
Returning a void expression from an arrow function shorthand is forbidden. Please add braces to the arrow function.
Raw output
60 | })
61 |
> 62 | changelogStream.on('end', () => resolve(newChangelog))
| ^
63 | changelogStream.on('error', (error) => reject(error))
64 | })
65 | }
Check failure on line 64 in code/code-changelog/src/changelog.ts
github-actions / Lint
(@typescript-eslint/no-confusing-void-expression): Returning a void expression from an arrow function shorthand is forbidden. Please add braces to the arrow function.
Returning a void expression from an arrow function shorthand is forbidden. Please add braces to the arrow function.
Raw output
61 |
62 | changelogStream.on('end', () => resolve(newChangelog))
> 63 | changelogStream.on('error', (error) => reject(error))
| ^
64 | })
65 | }
66 |
Check failure on line 77 in code/code-changelog/src/changelog.ts
github-actions / Lint
(@typescript-eslint/no-explicit-any): Unexpected any. Specify a different type.
Unexpected any. Specify a different type.
Raw output
74 | try {
75 | existingData = await readFile(outFile, 'utf8')
> 76 | } catch (error: any) {
| ^
77 | if (error.code !== 'ENOENT') throw error
78 | }
79 |
Check warning on line 86 in code/code-changelog/src/changelog.ts
github-actions / Lint
(no-console): Unexpected console statement.
Unexpected console statement.
Raw output
83 | return updatedData
84 | } catch (error) {
> 85 | console.error('Error generating changelog:', error)
| ^
86 | throw error
87 | }
88 | }
Check failure on line 6 in code/code-commit/src/commit.linter.ts
github-actions / Lint
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.
All imports in the declaration are only used as types. Use `import type`.
Raw output
3 |
4 | import { RuleConfigSeverity } from '@commitlint/types'
> 5 | import { LintOutcome } from '@commitlint/types'
| ^
6 | import { QualifiedRules } from '@commitlint/types'
7 | import { format } from '@commitlint/format/lib/format.js'
8 | import commitlint from '@commitlint/lint'
Check failure on line 7 in code/code-commit/src/commit.linter.ts
github-actions / Lint
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.
All imports in the declaration are only used as types. Use `import type`.
Raw output
4 | import { RuleConfigSeverity } from '@commitlint/types'
5 | import { LintOutcome } from '@commitlint/types'
> 6 | import { QualifiedRules } from '@commitlint/types'
| ^
7 | import { format } from '@commitlint/format/lib/format.js'
8 | import commitlint from '@commitlint/lint'
9 |