Ast format alternative #82
Annotations
10 errors and 11 warnings
lint:
src/formatter.ts#L15
Async arrow function 'formatFile' has no 'await' expression
|
lint:
src/index.ts#L77
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
|
lint:
src/serviceFile.ts#L97
Unsafe assignment of an `any` value
|
lint:
src/serviceFile.ts#L98
Unsafe member access .includes on an `any` value
|
lint:
src/serviceFile.ts#L98
Unsafe call of an `any` typed value
|
lint:
src/serviceFile.ts#L102
Unsafe member access .includes on an `any` value
|
lint:
src/serviceFile.ts#L102
Unsafe call of an `any` typed value
|
lint:
src/serviceFile.ts#L127
Unsafe assignment of an `any` value
|
lint:
src/serviceFile.ts#L129
Unsafe member access .length on an `any` value
|
lint:
src/serviceFile.ts#L129
Unsafe member access .trim on an `any` value
|
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint:
src/formatter.ts#L1
'prettier' is assigned a value but never used
|
lint:
src/formatter.ts#L2
'prettierConfig' is assigned a value but never used
|
lint:
src/formatter.ts#L5
'projectRoot' is defined but never used
|
lint:
src/serviceFile.ts#L3
'tsTypeAnnotation' is defined but never used
|
lint:
src/sharedSchema.ts#L75
Forbidden non-null assertion
|
lint:
src/sharedSchema.ts#L173
Forbidden non-null assertion
|
lint:
src/tsBuilder.ts#L34
'opts' is defined but never used
|
lint
Unnecessary conditional, both sides of the expression are literal values
|
lint
Unnecessary conditional, value is always truthy
|
lint
Unexpected any. Specify a different type
|