forked from reduxjs/redux
-
Notifications
You must be signed in to change notification settings - Fork 0
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 reduxjs#3536 from reduxjs/ts-conversion
[Meta PR] Convert to TypeScript Co-authored-by: Gregory Beaver <greg.beaver.cello@gmail.com> Co-authored-by: Nick McCurdy <nick@nickmccurdy.com> Co-authored-by: Jed Mao <jedmao@users.noreply.github.com> Former-commit-id: 3b4f495
- Loading branch information
Showing
56 changed files
with
743 additions
and
256 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 |
---|---|---|
|
@@ -2,6 +2,7 @@ const { NODE_ENV } = process.env | |
|
||
module.exports = { | ||
presets: [ | ||
'@babel/typescript', | ||
[ | ||
'@babel/env', | ||
{ | ||
|
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 |
---|---|---|
@@ -1,22 +1,34 @@ | ||
module.exports = { | ||
extends: 'react-app', | ||
|
||
parser: '@typescript-eslint/parser', | ||
|
||
plugins: ['@typescript-eslint'], | ||
|
||
settings: { | ||
react: { | ||
version: '16.8' | ||
}, | ||
'import/parsers': { | ||
'@typescript-eslint/parser': ['.ts', '.tsx'] | ||
}, | ||
'import/resolver': { | ||
// use <root>/tsconfig.json | ||
typescript: {} | ||
} | ||
}, | ||
|
||
rules: { | ||
'jsx-a11y/href-no-hash': 'off' | ||
}, | ||
|
||
overrides: [ | ||
{ | ||
files: 'test/**/*.js', | ||
env: { | ||
jest: true, | ||
}, | ||
}, | ||
], | ||
'jsx-a11y/href-no-hash': 'off', | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
vars: 'all', | ||
args: 'after-used', | ||
ignoreRestSiblings: true, | ||
argsIgnorePattern: '^_' // ignore unused variables whose name is '_' | ||
} | ||
] | ||
} | ||
} |
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,10 +1,11 @@ | ||
.DS_Store | ||
*.log | ||
node_modules | ||
|
||
coverage | ||
|
||
dist | ||
lib | ||
es | ||
coverage | ||
types | ||
|
||
website/translated_docs | ||
website/build/ | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
50e8d018faee8887ed82337fcd1993ad07df0968 | ||
aa8ec2ad318f2542aaf407c9112143f8669dba4e |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.