This repository was archived by the owner on Nov 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1313 // https://github.com/typescript-eslint/typescript-eslint/blob/5b0b3d9edbcb3ab588a34c431037d9deece30824/packages/eslint-plugin/docs/rules/indent.md#options
1414 "@typescript-eslint/indent": ["error", 2],
1515 "import/no-extraneous-dependencies": ["error", {
16- "devDependencies": ["**/*.spec.*"]
16+ "devDependencies": ["**/*.spec.*", "src/setupTests.tsx" ]
1717 }
1818 ],
1919 // We use `.tsx` instead of `.jsx` for files with JSX inside.
Original file line number Diff line number Diff line change 1+ /* eslint amo/only-tsx-files: 0, @typescript-eslint/no-unused-vars: 0 */
2+
13declare module 'react-diff-view' {
24 type ChangeType = 'delete' | 'insert' | 'normal' ;
35
@@ -13,7 +15,7 @@ declare module 'react-diff-view' {
1315 } ;
1416
1517 type HunkInfo = {
16- changes : Array < ChangeInfo > ;
18+ changes : ChangeInfo [ ] ;
1719 content : string ;
1820 isPlain : boolean ;
1921 newLines : number ;
@@ -22,7 +24,7 @@ declare module 'react-diff-view' {
2224 oldStart : number ;
2325 } ;
2426
25- type Hunks = Array < HunkInfo > ;
27+ type Hunks = HunkInfo [ ] ;
2628
2729 type DiffInfo = {
2830 oldPath : string ;
@@ -37,7 +39,7 @@ declare module 'react-diff-view' {
3739 type : string ;
3840 } ;
3941
40- function parseDiff ( text : string , options ?: object ) : Array < DiffInfo > ;
42+ function parseDiff ( text : string , options ?: object ) : DiffInfo [ ] ;
4143
4244 type ViewType = 'split' | 'unified' ;
4345
Original file line number Diff line number Diff line change 1+ /* eslint amo/only-tsx-files: 0, spaced-comment: 0 */
12/// <reference types="react-scripts" />
Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ configure({ adapter: new Adapter() });
77
88// See: https://github.com/jefflau/jest-fetch-mock/tree/07cf149688b6738e0a45864626ba47793d04da23#typescript-guide
99const customGlobal : GlobalWithFetchMock = global as GlobalWithFetchMock ;
10+
1011customGlobal . fetch = require ( 'jest-fetch-mock' ) ;
12+
1113customGlobal . fetchMock = customGlobal . fetch ;
1214
1315beforeEach ( ( ) => {
14- fetchMock . resetMocks ( ) ;
16+ customGlobal . fetchMock . resetMocks ( ) ;
1517} ) ;
You can’t perform that action at this time.
0 commit comments