39 lines
936 B
JavaScript
39 lines
936 B
JavaScript
module.exports = {
|
|
root: true,
|
|
extends: [
|
|
'@react-native',
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:react-native/all',
|
|
'prettier',
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint', 'react', 'react-native'],
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
ecmaVersion: 2021,
|
|
sourceType: 'module',
|
|
},
|
|
env: {
|
|
'react-native/react-native': true,
|
|
es2021: true,
|
|
node: true,
|
|
},
|
|
rules: {
|
|
'react/react-in-jsx-scope': 'off',
|
|
'react/prop-types': 'off',
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
'react-native/no-inline-styles': 'warn',
|
|
'react-native/no-unused-styles': 'error',
|
|
'react-native/split-platform-components': 'warn',
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: 'detect',
|
|
},
|
|
},
|
|
}; |