File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11import { deleteDirectory } from '@codama/renderers-core' ;
22import { LogLevel , throwValidatorItemsVisitor } from '@codama/validators' ;
33import { rootNodeVisitor , visit } from '@codama/visitors-core' ;
4+ import { Plugin } from 'prettier' ;
45import * as estreePlugin from 'prettier/plugins/estree' ;
56import * as typeScriptPlugin from 'prettier/plugins/typescript' ;
67import { format } from 'prettier/standalone' ;
@@ -20,7 +21,7 @@ export type RenderOptions = GetRenderMapOptions & {
2021const DEFAULT_PRETTIER_OPTIONS : PrettierOptions = {
2122 arrowParens : 'always' ,
2223 parser : 'typescript' ,
23- plugins : [ estreePlugin , typeScriptPlugin ] ,
24+ plugins : [ estreePlugin as Plugin < unknown > , typeScriptPlugin ] ,
2425 printWidth : 80 ,
2526 semi : true ,
2627 singleQuote : true ,
Original file line number Diff line number Diff line change 11import { RenderMap } from '@codama/renderers-core' ;
2+ import { Plugin } from 'prettier' ;
23import * as estreePlugin from 'prettier/plugins/estree' ;
34import * as typeScriptPlugin from 'prettier/plugins/typescript' ;
45import { format } from 'prettier/standalone' ;
@@ -7,7 +8,7 @@ import { expect } from 'vitest';
78const PRETTIER_OPTIONS : Parameters < typeof format > [ 1 ] = {
89 arrowParens : 'always' ,
910 parser : 'typescript' ,
10- plugins : [ estreePlugin , typeScriptPlugin ] ,
11+ plugins : [ estreePlugin as Plugin < unknown > , typeScriptPlugin ] ,
1112 printWidth : 80 ,
1213 semi : true ,
1314 singleQuote : true ,
Original file line number Diff line number Diff line change 11import { deleteDirectory } from '@codama/renderers-core' ;
22import { rootNodeVisitor , visit } from '@codama/visitors-core' ;
3+ import { Plugin } from 'prettier' ;
34import * as estreePlugin from 'prettier/plugins/estree' ;
45import * as typeScriptPlugin from 'prettier/plugins/typescript' ;
56import { format } from 'prettier/standalone' ;
@@ -17,7 +18,7 @@ export type RenderOptions = GetRenderMapOptions & {
1718const DEFAULT_PRETTIER_OPTIONS : PrettierOptions = {
1819 arrowParens : 'always' ,
1920 parser : 'typescript' ,
20- plugins : [ estreePlugin , typeScriptPlugin ] ,
21+ plugins : [ estreePlugin as Plugin < unknown > , typeScriptPlugin ] ,
2122 printWidth : 80 ,
2223 semi : true ,
2324 singleQuote : true ,
Original file line number Diff line number Diff line change 11import { RenderMap } from '@codama/renderers-core' ;
2+ import { Plugin } from 'prettier' ;
23import * as estreePlugin from 'prettier/plugins/estree' ;
34import * as typeScriptPlugin from 'prettier/plugins/typescript' ;
45import { format } from 'prettier/standalone' ;
@@ -7,7 +8,7 @@ import { expect } from 'vitest';
78const PRETTIER_OPTIONS : Parameters < typeof format > [ 1 ] = {
89 arrowParens : 'always' ,
910 parser : 'typescript' ,
10- plugins : [ estreePlugin , typeScriptPlugin ] ,
11+ plugins : [ estreePlugin as Plugin < unknown > , typeScriptPlugin ] ,
1112 printWidth : 80 ,
1213 semi : true ,
1314 singleQuote : true ,
You can’t perform that action at this time.
0 commit comments