-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Typescript Integration - Phase 1 (#148)
* TS integration working build * add lint TS hook * convert utils folder * revert Helper transition due to error in build * add lint staged and TS config * update tsconfig add build types to build * update git ignore * replace storybook loader * feedback fixes * convert 1 story to TS and fix build * add accordion component to TS * fix rollup build * config components Type declarations * separate stories from ts build * feedback fixes part 1 * feedback fixes part 2 * fix jest module resolver * fix Media Queries type declaration * update changelog * v5.0.0-beta.0 * eslint auto fix files * eslint fixes * bump typescript version * alert component typo and webpack reorg * remove prettier for autogenerated files * fix typo * testing lintstaged * testing lintstaged TS * testing lintstaged JS * Hard type mediaqueries type * refactor cleanup * retore svg indexes and prettier config * add TS flags * v7.0.0-beta.0 * update changelog * remove rollup TS plugin * update changelog v7 beta 1 * v7.0.0-beta.1 * update babel plugin * update changelog * v7.0.0-beta.2 * reorder TSC command in build * udpate snapshot test * emitDeclarationOnly flag * udpate changelog * v7.0.0-beta.3 * restore utils colors to original format * update roll babel plugin * revert rollplugin bable version * update changelog * v7.0.0-beta.4
- Loading branch information
Showing
82 changed files
with
4,445 additions
and
5,797 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 |
---|---|---|
@@ -1,30 +1,63 @@ | ||
{ | ||
"extends": "curology", | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"extends": [ | ||
"curology", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"plugins": ["emotion"], | ||
"globals": { | ||
"document": false | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"webpack": { | ||
"config": "./.storybook/webpack.config.js" | ||
} | ||
}, | ||
"import/extensions": [".js", ".md"] | ||
}, | ||
"rules": { | ||
"@typescript-eslint/camelcase": 0, | ||
"@typescript-eslint/ban-ts-ignore": 0, | ||
"react/state-in-constructor": 0, | ||
"react/static-property-placement": 0, | ||
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }], | ||
"react/jsx-filename-extension": [1, { "extensions": [".js", ".tsx"] }], | ||
"import/extensions": [2, { "svg": "always" }] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["test.js"], | ||
"files": ["test.js", "test.ts", "test.tsx"], | ||
"rules": { | ||
"no-undef": "off", | ||
"emotion/jsx-import": "error", | ||
"emotion/no-vanilla": "error", | ||
"emotion/import-from-emotion": "error", | ||
"emotion/styled-import": "error" | ||
} | ||
} | ||
], | ||
"settings": { | ||
"import/resolver": { | ||
"webpack": { | ||
"config": "./.storybook/webpack.config.js" | ||
}, | ||
{ | ||
"files": ["**/style.js"], | ||
"rules": { | ||
"indent": "off" | ||
} | ||
}, | ||
"import/extensions": [".js", ".jsx", ".md"] | ||
}, | ||
"rules": { | ||
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }] | ||
} | ||
{ | ||
"files": ["*.js"], | ||
"rules": { | ||
"@typescript-eslint/no-var-requires": 0, | ||
"@typescript-eslint/explicit-function-return-type": 0 | ||
} | ||
}, | ||
{ | ||
"files": ["*.tsx"], | ||
"rules": { | ||
"react/prop-types": 0 | ||
} | ||
} | ||
] | ||
} |
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 = { | ||
'!(style|styles|test).js': ['prettier --write', 'eslint --fix'], | ||
'(style|styles|test).js': 'prettier --write', | ||
'src/**/*.{ts,tsx}': [ | ||
'prettier --write', | ||
'eslint --fix', | ||
() => 'tsc -p tsconfig.json --noEmit --emitDeclarationOnly false', | ||
], | ||
'*.{md,json}': 'prettier --write', | ||
}; |
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,6 @@ | ||
src/svgs/deprecated/index.js | ||
src/svgs/emojis/index.js | ||
src/svgs/glyphs/index.js | ||
src/svgs/icons/index.js | ||
src/svgs/logos/index.js | ||
src/svgs/navIcons/index.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
module.exports = { | ||
presets: [ | ||
'@babel/env', | ||
'@babel/react', | ||
'@emotion/babel-preset-css-prop', | ||
], | ||
presets: ['@babel/env', '@babel/react', '@emotion/babel-preset-css-prop'], | ||
plugins: [ | ||
'@babel/plugin-proposal-export-namespace-from', | ||
'@babel/plugin-proposal-export-default-from', | ||
['@babel/plugin-proposal-class-properties', { 'loose': true }], | ||
['@babel/plugin-transform-parameters', { 'loose': true }], | ||
['@babel/plugin-proposal-class-properties', { loose: true }], | ||
['@babel/plugin-transform-parameters', { loose: 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
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.