mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
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:
10
.eslintrc.js
10
.eslintrc.js
@@ -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',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user