recommended.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. 'use strict';
  2. const all = require('./all');
  3. module.exports = Object.assign({}, all, {
  4. languageOptions: all.languageOptions,
  5. rules: {
  6. 'react/display-name': 2,
  7. 'react/jsx-key': 2,
  8. 'react/jsx-no-comment-textnodes': 2,
  9. 'react/jsx-no-duplicate-props': 2,
  10. 'react/jsx-no-target-blank': 2,
  11. 'react/jsx-no-undef': 2,
  12. 'react/jsx-uses-react': 2,
  13. 'react/jsx-uses-vars': 2,
  14. 'react/no-children-prop': 2,
  15. 'react/no-danger-with-children': 2,
  16. 'react/no-deprecated': 2,
  17. 'react/no-direct-mutation-state': 2,
  18. 'react/no-find-dom-node': 2,
  19. 'react/no-is-mounted': 2,
  20. 'react/no-render-return-value': 2,
  21. 'react/no-string-refs': 2,
  22. 'react/no-unescaped-entities': 2,
  23. 'react/no-unknown-property': 2,
  24. 'react/no-unsafe': 0,
  25. 'react/prop-types': 2,
  26. 'react/react-in-jsx-scope': 2,
  27. 'react/require-render-return': 2,
  28. },
  29. });
  30. // this is so the `languageOptions` property won't be warned in the new config system
  31. Object.defineProperty(module.exports, 'languageOptions', { enumerable: false });