From 05a3bb69dc3d85d6fd17d821bc5f74a386c53340 Mon Sep 17 00:00:00 2001 From: Anton Kastritskiy Date: Tue, 1 Feb 2022 12:37:27 -0800 Subject: [PATCH] rename left ts files to tsx and ban ts file extension Summary: mass files rename Reviewed By: passy Differential Revision: D33890304 fbshipit-source-id: c057ac9fe87dd7659597c85d640619b93e1ff0e6 --- desktop/.eslintrc.js | 4 ++-- ...IPrefixInterfaces.node.ts => noIPrefixInterfaces.node.tsx} | 0 .../rules/{noIPrefixInterfaces.ts => noIPrefixInterfaces.tsx} | 0 desktop/plugins/package.json | 2 +- desktop/plugins/{postinstall.ts => postinstall.tsx} | 0 ...nternalDevToolsModule.ts => getInternalDevToolsModule.tsx} | 0 6 files changed, 3 insertions(+), 3 deletions(-) rename desktop/eslint-plugin-flipper/src/rules/__tests__/{noIPrefixInterfaces.node.ts => noIPrefixInterfaces.node.tsx} (100%) rename desktop/eslint-plugin-flipper/src/rules/{noIPrefixInterfaces.ts => noIPrefixInterfaces.tsx} (100%) rename desktop/plugins/{postinstall.ts => postinstall.tsx} (100%) rename desktop/plugins/public/reactdevtools/fb-stubs/{getInternalDevToolsModule.ts => getInternalDevToolsModule.tsx} (100%) diff --git a/desktop/.eslintrc.js b/desktop/.eslintrc.js index e8399ab01..070d2a313 100644 --- a/desktop/.eslintrc.js +++ b/desktop/.eslintrc.js @@ -144,7 +144,7 @@ module.exports = { 'flipper/no-relative-imports-across-packages': [2], 'flipper/no-electron-remote-imports': [1], 'flipper/no-console-error-without-context': [2], - 'flipper/no-ts-file-extension': 1, + 'flipper/no-ts-file-extension': 2, 'flipper/no-i-prefix-interfaces': 2, 'communist-spelling/communist-spelling': [1, {allow: ['cancelled']}], @@ -266,7 +266,7 @@ module.exports = { files: [ 'plugins/**/__tests__/*.tsx', 'plugins/**/__tests__/*.ts', - 'plugins/postinstall.ts', + 'plugins/postinstall.tsx', // TODO: Remove specific plugin overrides down below 'plugins/fb/kaios-portal/kaios-debugger-client/client.tsx', 'plugins/public/reactdevtools/index.tsx', diff --git a/desktop/eslint-plugin-flipper/src/rules/__tests__/noIPrefixInterfaces.node.ts b/desktop/eslint-plugin-flipper/src/rules/__tests__/noIPrefixInterfaces.node.tsx similarity index 100% rename from desktop/eslint-plugin-flipper/src/rules/__tests__/noIPrefixInterfaces.node.ts rename to desktop/eslint-plugin-flipper/src/rules/__tests__/noIPrefixInterfaces.node.tsx diff --git a/desktop/eslint-plugin-flipper/src/rules/noIPrefixInterfaces.ts b/desktop/eslint-plugin-flipper/src/rules/noIPrefixInterfaces.tsx similarity index 100% rename from desktop/eslint-plugin-flipper/src/rules/noIPrefixInterfaces.ts rename to desktop/eslint-plugin-flipper/src/rules/noIPrefixInterfaces.tsx diff --git a/desktop/plugins/package.json b/desktop/plugins/package.json index 70396f731..0999fcf5d 100644 --- a/desktop/plugins/package.json +++ b/desktop/plugins/package.json @@ -24,6 +24,6 @@ "react-dom": "*" }, "scripts": { - "postinstall": "cd .. && ./ts-node ./plugins/postinstall.ts" + "postinstall": "cd .. && ./ts-node ./plugins/postinstall.tsx" } } diff --git a/desktop/plugins/postinstall.ts b/desktop/plugins/postinstall.tsx similarity index 100% rename from desktop/plugins/postinstall.ts rename to desktop/plugins/postinstall.tsx diff --git a/desktop/plugins/public/reactdevtools/fb-stubs/getInternalDevToolsModule.ts b/desktop/plugins/public/reactdevtools/fb-stubs/getInternalDevToolsModule.tsx similarity index 100% rename from desktop/plugins/public/reactdevtools/fb-stubs/getInternalDevToolsModule.ts rename to desktop/plugins/public/reactdevtools/fb-stubs/getInternalDevToolsModule.tsx