-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds typescript support via babel and updated configs (#25)
Adds typescript support via babel and updated configs
- Loading branch information
Showing
16 changed files
with
88 additions
and
64 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 +1 @@ | ||
8 | ||
12 |
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 |
---|---|---|
|
@@ -30,50 +30,53 @@ | |
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.4.4", | ||
"@babel/plugin-proposal-class-properties": "^7.0.0", | ||
"@babel/cli": "^7.7.0", | ||
"@babel/core": "^7.7.2", | ||
"@babel/plugin-proposal-class-properties": "^7.7.0", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.6.2", | ||
"@babel/plugin-proposal-optional-chaining": "^7.6.0", | ||
"@babel/plugin-transform-modules-commonjs": "^7.0.0", | ||
"@babel/plugin-transform-modules-commonjs": "^7.7.0", | ||
"@babel/plugin-transform-runtime": "^7.6.2", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/preset-react": "^7.0.0", | ||
"@babel/runtime": "^7.6.3", | ||
"@semantic-release/error": "^2.0.0", | ||
"@babel/preset-env": "^7.7.1", | ||
"@babel/preset-react": "^7.7.0", | ||
"@babel/preset-typescript": "^7.7.2", | ||
"@babel/runtime": "^7.7.2", | ||
"@semantic-release/error": "^2.2.0", | ||
"@typescript-eslint/eslint-plugin": "^2.6.1", | ||
"@typescript-eslint/parser": "^2.6.1", | ||
"arrify": "^2.0.1", | ||
"babel-eslint": "^10.0.3", | ||
"babel-jest": "^24.8.0", | ||
"babel-jest": "^24.9.0", | ||
"babel-plugin-dynamic-import-node": "^2.3.0", | ||
"babel-plugin-macros": "^2.3.0", | ||
"babel-plugin-minify-dead-code-elimination": "^0.5.0", | ||
"babel-plugin-module-resolver": "^3.1.1", | ||
"babel-plugin-macros": "^2.6.1", | ||
"babel-plugin-minify-dead-code-elimination": "^0.5.1", | ||
"babel-plugin-module-resolver": "^3.2.0", | ||
"babel-plugin-transform-inline-environment-variables": "^0.4.3", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.13", | ||
"browserslist": "^4.1.0", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24", | ||
"browserslist": "^4.7.2", | ||
"concurrently": "^5.0.0", | ||
"cross-env": "^6.0.3", | ||
"cross-spawn": "^7.0.1", | ||
"doctoc": "^1.3.0", | ||
"doctoc": "^1.4.0", | ||
"env-ci": "^4.5.1", | ||
"eslint": "^6.6.0", | ||
"eslint-config-tradeshift": "^6.2.1", | ||
"eslint-plugin-react": "^7.10.0", | ||
"eslint-config-tradeshift": "^6.3.0", | ||
"eslint-plugin-react": "^7.16.0", | ||
"execa": "^3.2.0", | ||
"glob": "^7.1.2", | ||
"husky": "^0.14.3", | ||
"jest": "^24.8.0", | ||
"jest": "^24.9.0", | ||
"jest-junit": "^6.4.0", | ||
"lint-staged": "^9.4.2", | ||
"lodash.camelcase": "^4.3.0", | ||
"lodash.has": "^4.5.2", | ||
"lodash.merge": "^4.6.0", | ||
"lodash.merge": "^4.6.2", | ||
"mkdirp": "^0.5.1", | ||
"npmlog": "^4.1.2", | ||
"prettier": "^1.12.1", | ||
"prettier": "^1.18.2", | ||
"read-pkg-up": "^7.0.0", | ||
"resolve": "^1.4.0", | ||
"resolve": "^1.12.0", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^0.66.0", | ||
"rollup-plugin-babel": "^4.0.3", | ||
|
@@ -86,21 +89,16 @@ | |
"rollup-watch": "^4.3.1", | ||
"semver": "^6.3.0", | ||
"which": "^2.0.1", | ||
"yargs-parser": "^10.0.0" | ||
"yargs-parser": "^10.1.0" | ||
}, | ||
"eslintIgnored": [ | ||
"node_modules", | ||
"coverage", | ||
"dist" | ||
], | ||
"eslintConfig": { | ||
"extends": [ | ||
"tradeshift", | ||
"tradeshift/jest" | ||
], | ||
"extends": "./src/config/eslintrc", | ||
"rules": { | ||
"no-useless-catch": 0, | ||
"no-prototype-builtins": 0, | ||
"jest/no-jest-import": 0 | ||
} | ||
}, | ||
|
@@ -113,6 +111,7 @@ | |
}, | ||
"homepage": "https://github.com/wejendorp/tradeshift-scripts#readme", | ||
"devDependencies": { | ||
"jest-in-case": "^1.0.2" | ||
"jest-in-case": "^1.0.2", | ||
"typescript": "^3.7.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,8 @@ | ||
export class IAmTypes<T> { | ||
v: T; | ||
value(): T { | ||
return this.v; | ||
} | ||
} | ||
|
||
export default 1; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`format --no-cache will disable caching 1`] = `eslint --config ./src/config/eslintrc.js --ignore-path ./src/config/eslintignore --no-cache .`; | ||
exports[`format --no-cache will disable caching 1`] = `eslint --config ./src/config/eslintrc.js --ignore-path ./src/config/eslintignore --ext .js,.ts --no-cache .`; | ||
|
||
exports[`format calls eslint CLI with default args 1`] = `eslint --config ./src/config/eslintrc.js --ignore-path ./src/config/eslintignore --cache .`; | ||
exports[`format calls eslint CLI with default args 1`] = `eslint --config ./src/config/eslintrc.js --ignore-path ./src/config/eslintignore --cache --ext .js,.ts .`; | ||
|
||
exports[`format does not use built-in config with .eslintrc file 1`] = `eslint --ignore-path ./src/config/eslintignore --cache .`; | ||
exports[`format does not use built-in config with .eslintrc file 1`] = `eslint --ignore-path ./src/config/eslintignore --cache --ext .js,.ts .`; | ||
|
||
exports[`format does not use built-in config with .eslintrc.js file 1`] = `eslint --ignore-path ./src/config/eslintignore --cache .`; | ||
exports[`format does not use built-in config with .eslintrc.js file 1`] = `eslint --ignore-path ./src/config/eslintignore --cache --ext .js,.ts .`; | ||
|
||
exports[`format does not use built-in config with --config 1`] = `eslint --ignore-path ./src/config/eslintignore --cache --config ./custom-config.js .`; | ||
exports[`format does not use built-in config with --config 1`] = `eslint --ignore-path ./src/config/eslintignore --cache --ext .js,.ts --config ./custom-config.js .`; | ||
|
||
exports[`format does not use built-in config with eslintConfig pkg prop 1`] = `eslint --ignore-path ./src/config/eslintignore --cache .`; | ||
exports[`format does not use built-in config with eslintConfig pkg prop 1`] = `eslint --ignore-path ./src/config/eslintignore --cache --ext .js,.ts .`; | ||
|
||
exports[`format does not use built-in ignore with .eslintignore file 1`] = `eslint --config ./src/config/eslintrc.js --cache .`; | ||
exports[`format does not use built-in ignore with .eslintignore file 1`] = `eslint --config ./src/config/eslintrc.js --cache --ext .js,.ts .`; | ||
|
||
exports[`format does not use built-in ignore with --ignore-path 1`] = `eslint --config ./src/config/eslintrc.js --cache --ignore-path ./my-ignore .`; | ||
exports[`format does not use built-in ignore with --ignore-path 1`] = `eslint --config ./src/config/eslintrc.js --cache --ext .js,.ts --ignore-path ./my-ignore .`; | ||
|
||
exports[`format does not use built-in ignore with eslintIgnore pkg prop 1`] = `eslint --config ./src/config/eslintrc.js --cache .`; | ||
exports[`format does not use built-in ignore with eslintIgnore pkg prop 1`] = `eslint --config ./src/config/eslintrc.js --cache --ext .js,.ts .`; | ||
|
||
exports[`format runs on given files, but only js files 1`] = `eslint --config ./src/config/eslintrc.js --ignore-path ./src/config/eslintignore --cache ./src/index.js ./src/component.js`; | ||
exports[`format runs on given files, but only js files 1`] = `eslint --config ./src/config/eslintrc.js --ignore-path ./src/config/eslintignore --cache --ext .js,.ts ./src/index.js ./src/component.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
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