diff --git a/desktop/eslint-plugin-flipper/package.json b/desktop/eslint-plugin-flipper/package.json index e3f3dd3be..b40689a48 100644 --- a/desktop/eslint-plugin-flipper/package.json +++ b/desktop/eslint-plugin-flipper/package.json @@ -10,7 +10,7 @@ "license": "MIT", "bugs": "https://github.com/facebook/flipper/issues", "dependencies": { - "@typescript-eslint/experimental-utils": "^5.10.1", + "@typescript-eslint/experimental-utils": "^5.10.2", "@typescript-eslint/parser": "^5.10.2", "fs-extra": "^10.0.0" }, diff --git a/desktop/eslint-plugin-flipper/src/rules/noConsoleErrorWithoutContext.tsx b/desktop/eslint-plugin-flipper/src/rules/noConsoleErrorWithoutContext.tsx index 2512514b6..bc5e7f3ef 100644 --- a/desktop/eslint-plugin-flipper/src/rules/noConsoleErrorWithoutContext.tsx +++ b/desktop/eslint-plugin-flipper/src/rules/noConsoleErrorWithoutContext.tsx @@ -60,4 +60,4 @@ export default createESLintRule({ }, }; }, -}); +}) as any /* unnameable return type */; diff --git a/desktop/eslint-plugin-flipper/src/rules/noElectronRemoteImports.tsx b/desktop/eslint-plugin-flipper/src/rules/noElectronRemoteImports.tsx index 0355ea3a8..0edae22a4 100644 --- a/desktop/eslint-plugin-flipper/src/rules/noElectronRemoteImports.tsx +++ b/desktop/eslint-plugin-flipper/src/rules/noElectronRemoteImports.tsx @@ -49,4 +49,4 @@ export default createESLintRule({ }, }; }, -}); +}) as any /* unnameable return type */; diff --git a/desktop/eslint-plugin-flipper/src/rules/noIPrefixInterfaces.tsx b/desktop/eslint-plugin-flipper/src/rules/noIPrefixInterfaces.tsx index 935fbf3b8..dfe15e868 100644 --- a/desktop/eslint-plugin-flipper/src/rules/noIPrefixInterfaces.tsx +++ b/desktop/eslint-plugin-flipper/src/rules/noIPrefixInterfaces.tsx @@ -47,7 +47,7 @@ export default createESLintRule({ }, }; }, -}); +}) as any /* unnameable return type */; function isLetter(x: string | undefined): boolean { return typeof x === 'string' && /^[a-z]$/i.test(x); diff --git a/desktop/eslint-plugin-flipper/src/rules/noInterfacePropsOrState.tsx b/desktop/eslint-plugin-flipper/src/rules/noInterfacePropsOrState.tsx index 7a8cd7aeb..74f772d18 100644 --- a/desktop/eslint-plugin-flipper/src/rules/noInterfacePropsOrState.tsx +++ b/desktop/eslint-plugin-flipper/src/rules/noInterfacePropsOrState.tsx @@ -45,4 +45,4 @@ export default createESLintRule({ }, }; }, -}); +}) as any /* unnameable return type */; diff --git a/desktop/eslint-plugin-flipper/src/rules/noRelativeImportsAcrossPackages.tsx b/desktop/eslint-plugin-flipper/src/rules/noRelativeImportsAcrossPackages.tsx index 264995561..81355a10b 100644 --- a/desktop/eslint-plugin-flipper/src/rules/noRelativeImportsAcrossPackages.tsx +++ b/desktop/eslint-plugin-flipper/src/rules/noRelativeImportsAcrossPackages.tsx @@ -106,4 +106,4 @@ export default createESLintRule({ }, }; }, -}); +}) as any /* unnameable return type */; diff --git a/desktop/eslint-plugin-flipper/src/rules/noTsFileExtension.tsx b/desktop/eslint-plugin-flipper/src/rules/noTsFileExtension.tsx index 64a73e193..20c607fe3 100644 --- a/desktop/eslint-plugin-flipper/src/rules/noTsFileExtension.tsx +++ b/desktop/eslint-plugin-flipper/src/rules/noTsFileExtension.tsx @@ -45,4 +45,4 @@ export default createESLintRule({ }, }; }, -}); +}) as any /* unnameable return type */; diff --git a/desktop/eslint-plugin-flipper/src/utils/createEslintRule.tsx b/desktop/eslint-plugin-flipper/src/utils/createEslintRule.tsx index 6630cb21a..c51e05c09 100644 --- a/desktop/eslint-plugin-flipper/src/utils/createEslintRule.tsx +++ b/desktop/eslint-plugin-flipper/src/utils/createEslintRule.tsx @@ -9,4 +9,6 @@ import {ESLintUtils} from '@typescript-eslint/experimental-utils'; -export const createESLintRule = ESLintUtils.RuleCreator(() => ``); +export type RuleCreator = ReturnType; + +export const createESLintRule: RuleCreator = ESLintUtils.RuleCreator(() => ``); diff --git a/desktop/yarn.lock b/desktop/yarn.lock index 2c8a11640..9ef493e6e 100644 --- a/desktop/yarn.lock +++ b/desktop/yarn.lock @@ -2958,12 +2958,12 @@ semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/experimental-utils@^5.10.1": - version "5.10.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.10.1.tgz#49fa5a7800ed08ea70aef14fccb14fbae85116ab" - integrity sha512-Ryeb8nkJa/1zKl8iujNtJC8tgj6PgaY0sDUnrTqbmC70nrKKkZaHfiRDTcqICmCSCEQyLQcJAoh0AukLaIaGTw== +"@typescript-eslint/experimental-utils@^5.10.2": + version "5.10.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.10.2.tgz#dbb541e2070c7bd6e63d3e3a55b58be73a8fbb34" + integrity sha512-stRnIlxDduzxtaVLtEohESoXI1k7J6jvJHGyIkOT2pvXbg5whPM6f9tzJ51bJJxaJTdmvwgVFDNCopFRb2F5Gw== dependencies: - "@typescript-eslint/utils" "5.10.1" + "@typescript-eslint/utils" "5.10.2" "@typescript-eslint/parser@^5.10.2": version "5.10.2" @@ -3048,6 +3048,18 @@ eslint-scope "^5.1.1" eslint-utils "^3.0.0" +"@typescript-eslint/utils@5.10.2": + version "5.10.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.10.2.tgz#1fcd37547c32c648ab11aea7173ec30060ee87a8" + integrity sha512-vuJaBeig1NnBRkf7q9tgMLREiYD7zsMrsN1DA3wcoMDvr3BTFiIpKjGiYZoKPllfEwN7spUjv7ZqD+JhbVjEPg== + dependencies: + "@types/json-schema" "^7.0.9" + "@typescript-eslint/scope-manager" "5.10.2" + "@typescript-eslint/types" "5.10.2" + "@typescript-eslint/typescript-estree" "5.10.2" + eslint-scope "^5.1.1" + eslint-utils "^3.0.0" + "@typescript-eslint/visitor-keys@5.10.1": version "5.10.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.10.1.tgz#29102de692f59d7d34ecc457ed59ab5fc558010b"