File tree Expand file tree Collapse file tree 6 files changed +14
-12
lines changed Expand file tree Collapse file tree 6 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 1+ rules :
2+ ' @typescript-eslint/no-unused-vars ' : ' off'
Original file line number Diff line number Diff line change 11import { LayoutPosition } from '../../index.esm' ;
22
3- export const left : LayoutPosition = 'left' ;
4- export const right : LayoutPosition = 'right' ;
5- export const top : LayoutPosition = 'top' ;
6- export const bottom : LayoutPosition = 'bottom' ;
7- export const center : LayoutPosition = 'center' ;
8- export const axis : LayoutPosition = { x : 10 } ;
3+ const left : LayoutPosition = 'left' ;
4+ const right : LayoutPosition = 'right' ;
5+ const top : LayoutPosition = 'top' ;
6+ const bottom : LayoutPosition = 'bottom' ;
7+ const center : LayoutPosition = 'center' ;
8+ const axis : LayoutPosition = { x : 10 } ;
99
1010// @ts -expect-error invalid position
11- export const invalid : LayoutPosition = 'none' ;
11+ const invalid : LayoutPosition = 'none' ;
Original file line number Diff line number Diff line change 11import { Chart } from '../index.esm' ;
22
3- export const chart = new Chart ( 'test' , {
3+ const chart = new Chart ( 'test' , {
44 type : 'bar' ,
55 data : {
66 labels : [ 'a' ] ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ interface test {
88 testC : ParsedDataType < 'pie' | 'line' | 'bar' >
99}
1010
11- export const testImpl : test = {
11+ const testImpl : test = {
1212 pie : 1 ,
1313 line : { x : 1 , y : 2 } ,
1414 testA : 1 ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ interface test {
99 testD ?: Scriptable < number , ScriptableContext < ChartType > >
1010}
1111
12- export const testImpl : test = {
12+ const testImpl : test = {
1313 pie : ( ctx ) => ctx . parsed ,
1414 line : ( ctx ) => ctx . parsed . x + ctx . parsed . y ,
1515 testA : ( ctx ) => ctx . parsed ,
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ interface Context {
1515 chart : Chart ;
1616}
1717
18- export const ctx : Context = {
18+ const ctx : Context = {
1919 chart : chart
2020} ;
2121
2222// @ts -expect-error Type '{ x: number; y: number; }[]' is not assignable to type 'number[]'.
23- export const dataArray : number [ ] = chart . data . datasets [ 0 ] . data ;
23+ const dataArray : number [ ] = chart . data . datasets [ 0 ] . data ;
You can’t perform that action at this time.
0 commit comments