-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #375 from markrickert/typescript
- Loading branch information
Showing
66 changed files
with
2,551 additions
and
1,060 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
extends: ['react-app'], | ||
plugins: ['prettier', '@emotion'], | ||
rules: { | ||
'prettier/prettier': 'error', | ||
'jsx-a11y/accessible-emoji': 'off', | ||
'import/no-anonymous-default-export': 'off', | ||
'react-hooks/exhaustive-deps': 'off', | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['src/__tests__/**/*'], | ||
env: { | ||
jest: true, | ||
}, | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import '@emotion/react' | ||
|
||
import { Theme as EmotionTheme } from '../src/theme' | ||
|
||
export {} | ||
|
||
declare module '@emotion/react' { | ||
export interface Theme extends EmotionTheme {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
interface Window {} | ||
|
||
interface Process { | ||
env: { | ||
PUBLIC_URL: string | ||
NODE_ENV: 'development' | 'production' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
const { override, addBabelPreset } = require('customize-cra') | ||
|
||
module.exports = override(addBabelPreset('@emotion/babel-preset-css-prop')) | ||
const ignoreWarnings = (value) => (config) => { | ||
config.ignoreWarnings = value | ||
return config | ||
} | ||
|
||
module.exports = override( | ||
addBabelPreset('@emotion/babel-preset-css-prop'), | ||
|
||
// Ignore warnings about the react-diff-view sourcemap files. | ||
ignoreWarnings([/Failed to parse source map/]) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
transform: { | ||
'^.+\\.(js|jsx|ts|tsx)?$': 'ts-jest', | ||
}, | ||
transformIgnorePatterns: ['<rootDir>/node_modules/'], | ||
testMatch: ['<rootDir>>/__tests__/**/*.spec.(js|jsx|ts|tsx)'], | ||
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
18 changes: 15 additions & 3 deletions
18
...ents/common/CompletedFilesCounter.spec.js → ...nts/common/CompletedFilesCounter.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.