-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(configs): configure TypeScript build system (#563)
* chore(configs): set up TypeScript to compile code * style(configs): configure Eslint to lint TypeScript * feat(types): add basic types * chore(configs): exclude spec and story files from build * chore(configs): configure Jest for TypeScript * chore(configs): configure Storybook for TypeScript * chore(configs): configure static style script for TypeScript * fix(theme): add missing colors to theme interface * chore(deps): upgrade to Foundry v2.1 * chore(configs): configure Plop and lint-staged for TypeScript Co-authored-by: Hugo <hleote@gmail.com> BREAKING CHANGE: Compile code with TypeScript. The compiler targets ES2020 syntax, so users need to transpile the Circuit UI code themselves.
- Loading branch information
1 parent
42ae124
commit db9d865
Showing
19 changed files
with
1,398 additions
and
503 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
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 |
---|---|---|
|
@@ -7,3 +7,8 @@ static/ | |
public/ | ||
coverage/ | ||
__coverage__/ | ||
__reports__/ | ||
/*.config.js | ||
/*rc.js | ||
/plopfile.js | ||
/jest.*.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
module.exports = require('@sumup/foundry/eslint')( | ||
{ | ||
language: 'JavaScript', | ||
language: 'TypeScript', | ||
environments: ['Browser'], | ||
frameworks: ['React', 'Emotion', 'Jest'], | ||
openSource: true | ||
}, | ||
{ | ||
rules: { | ||
'arrow-parens': 'off' | ||
}, | ||
parserOptions: { | ||
project: ['./tsconfig.eslint.json'] | ||
} | ||
} | ||
); |
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 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.
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 |
---|---|---|
|
@@ -14,5 +14,5 @@ | |
*/ | ||
|
||
module.exports = require('@sumup/foundry/lint-staged')({ | ||
language: 'JavaScript' | ||
language: 'TypeScript' | ||
}); |
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 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 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.