Ver código fonte

Downgrade eslint react/prop-types rule to warning.

From https://github.com/yannickcr/eslint-plugin-react/issues/2135, it seems that this may be an error in the eslint plugin?
Jason Grout 4 anos atrás
pai
commit
7e71d98b0b
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      .eslintrc.js

+ 2 - 1
.eslintrc.js

@@ -58,7 +58,8 @@ module.exports = {
     'jest/no-jest-import': 'off',
     'jest/no-export': 'warn',
     'jest/no-try-expect': 'warn',
-    'jest/expect-expect': 'off'
+    'jest/expect-expect': 'off',
+    'react/prop-types': 'warn'
   },
   settings: {
     react: {