defaults.js 964 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. module.exports = {
  2. mode: 'jsx-text-only',
  3. 'jsx-components': {
  4. include: [],
  5. exclude: ['Trans'],
  6. },
  7. 'jsx-attributes': {
  8. include: [],
  9. exclude: [
  10. 'className',
  11. 'styleName',
  12. 'style',
  13. 'type',
  14. 'key',
  15. 'id',
  16. 'width',
  17. 'height',
  18. ],
  19. },
  20. words: {
  21. exclude: [
  22. '[0-9!-/:-@[-`{-~]+',
  23. '[A-Z_-]+',
  24. require('./htmlEntities'),
  25. /^\p{Emoji}+$/u,
  26. ],
  27. },
  28. callees: {
  29. exclude: [
  30. 'i18n(ext)?',
  31. 't',
  32. 'require',
  33. 'addEventListener',
  34. 'removeEventListener',
  35. 'postMessage',
  36. 'getElementById',
  37. 'dispatch',
  38. 'commit',
  39. 'includes',
  40. 'indexOf',
  41. 'endsWith',
  42. 'startsWith',
  43. ],
  44. },
  45. 'object-properties': {
  46. include: [],
  47. exclude: ['[A-Z_-]+'],
  48. },
  49. 'class-properties': {
  50. include: [],
  51. exclude: ['displayName'],
  52. },
  53. message: 'disallow literal string',
  54. 'should-validate-template': false,
  55. };