chore: ensure consistent use of import type (#1971)

We hit issues when building react-native-svg because of inconsistent use of import type. This change adds ESLint result to ensure consistency. I also ran yarn lint --fix to fix up the code.
This commit is contained in:
Tommy Nguyen
2023-01-31 14:12:21 +01:00
committed by GitHub
parent cb87e7510f
commit f2f533a292
47 changed files with 136 additions and 108 deletions

View File

@@ -1,4 +1,12 @@
module.exports = {
extends: '@react-native-community',
rules: { 'no-bitwise': 0, '@typescript-eslint/no-explicit-any': 2 },
parserOptions: {
project: ["./tsconfig.json"],
},
rules: {
'no-bitwise': 'off',
'@typescript-eslint/consistent-type-exports': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-explicit-any': 'error',
},
};