Skip to content

Commit 0058b7f

Browse files
Migrate Babel from Flow to TypeScript (except Babel parser) (#11578)
Co-authored-by: Nicolò Ribaudo <[email protected]>
1 parent 473f145 commit 0058b7f

162 files changed

Lines changed: 672 additions & 133 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = {
8484
],
8585
excludedFiles: [
8686
// @babel/register is the require() hook, so it will always be CJS-based
87-
"packages/babel-register/**/*.js",
87+
"packages/babel-register/**/*.{js,ts}",
8888
],
8989
rules: {
9090
"no-restricted-globals": ["error", ...cjsGlobals],

Gulpfile.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function mapSrcToLib(srcPath) {
6161
function mapToDts(packageName) {
6262
return packageName.replace(
6363
/(?<=\\|\/|^)(packages|eslint|codemods)(?=\\|\/)/,
64-
"dts"
64+
"dts/$1"
6565
);
6666
}
6767

codemods/babel-plugin-codemod-object-assign-to-object-spread/src/index.js renamed to codemods/babel-plugin-codemod-object-assign-to-object-spread/src/index.ts

File renamed without changes.

codemods/babel-plugin-codemod-optional-catch-binding/src/index.js renamed to codemods/babel-plugin-codemod-optional-catch-binding/src/index.ts

File renamed without changes.

eslint/babel-eslint-plugin-development-internal/src/index.js renamed to eslint/babel-eslint-plugin-development-internal/src/index.ts

File renamed without changes.

eslint/babel-eslint-plugin-development-internal/src/rules/dry-error-messages.js renamed to eslint/babel-eslint-plugin-development-internal/src/rules/dry-error-messages.ts

File renamed without changes.

eslint/babel-eslint-plugin-development-internal/src/rules/report-error-message-format.js renamed to eslint/babel-eslint-plugin-development-internal/src/rules/report-error-message-format.ts

File renamed without changes.
File renamed without changes.

eslint/babel-eslint-plugin-development/src/rules/no-deprecated-clone.js renamed to eslint/babel-eslint-plugin-development/src/rules/no-deprecated-clone.ts

File renamed without changes.

eslint/babel-eslint-plugin-development/src/rules/no-undefined-identifier.js renamed to eslint/babel-eslint-plugin-development/src/rules/no-undefined-identifier.ts

File renamed without changes.

0 commit comments

Comments
 (0)