From a5b89dffa6713bb06c1c572bbdc00517cf5e9bc5 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 8 Sep 2023 00:38:57 +0100 Subject: Add ESLint React plugin (#1412) * Add eslint-plugin-react * Enable display name rule --- .eslintrc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js index a40b5da92..c7c987751 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,12 +2,14 @@ module.exports = { root: true, extends: [ '@react-native-community', + 'plugin:react/recommended', 'plugin:react-native-a11y/ios', 'prettier', ], parser: '@typescript-eslint/parser', - plugins: ['@typescript-eslint', 'detox'], + plugins: ['@typescript-eslint', 'detox', 'react'], rules: { + 'react/no-unescaped-entities': 0, 'react-native/no-inline-styles': 0, }, ignorePatterns: [ -- cgit 1.4.1