diff --git a/packages/react-json-tree/.eslintrc.js b/packages/react-json-tree/.eslintrc.js index d4d961c4..4605e602 100644 --- a/packages/react-json-tree/.eslintrc.js +++ b/packages/react-json-tree/.eslintrc.js @@ -3,18 +3,22 @@ module.exports = { parser: '@typescript-eslint/parser', parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig.json'], + project: ['./tsconfig.json'] }, - plugins: [ - '@typescript-eslint', - ], + plugins: ['@typescript-eslint', 'react'], extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', + 'plugin:react/recommended', 'plugin:prettier/recommended', 'prettier/@typescript-eslint', 'prettier/react' ], + settings: { + react: { + version: 'detect' + } + } };