more strict type import style (#3265)

* MOB-1058 add consistent-type-specifier-style lint for even more consistency

* MOB-1058 apply consistent-type-specifier-style lint autofix
This commit is contained in:
Ryan Stelly
2025-12-04 20:51:01 -06:00
committed by GitHub
parent 4ca1fcea7e
commit 2e35071a5a
8 changed files with 15 additions and 13 deletions

View File

@@ -146,7 +146,8 @@ module.exports = {
"@typescript-eslint/no-unsafe-function-type": 1,
"@typescript-eslint/consistent-type-imports": ["error", {
fixStyle: "separate-type-imports"
}]
}],
"import/consistent-type-specifier-style": ["error", "prefer-top-level"]
},
ignorePatterns: ["!.detoxrc.js", "/coverage/*", "/vendor/*", "**/flow-typed"],
settings: {
@@ -165,7 +166,8 @@ module.exports = {
"@typescript-eslint/no-unsafe-function-type": "off",
"@typescript-eslint/no-wrapper-object-types": "off",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/consistent-type-imports": "off"
"@typescript-eslint/consistent-type-imports": "off",
"import/consistent-type-specifier-style": "off"
}
},
{