whitespaceRules.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. module.exports = [
  2. 'array-bracket-newline',
  3. 'array-bracket-spacing',
  4. 'array-element-newline',
  5. 'arrow-spacing',
  6. 'block-spacing',
  7. 'comma-spacing',
  8. 'computed-property-spacing',
  9. 'dot-location',
  10. 'eol-last',
  11. 'func-call-spacing',
  12. 'function-paren-newline',
  13. 'generator-star-spacing',
  14. 'implicit-arrow-linebreak',
  15. 'indent',
  16. 'key-spacing',
  17. 'keyword-spacing',
  18. 'line-comment-position',
  19. 'linebreak-style',
  20. 'multiline-ternary',
  21. 'newline-per-chained-call',
  22. 'no-irregular-whitespace',
  23. 'no-mixed-spaces-and-tabs',
  24. 'no-multi-spaces',
  25. 'no-regex-spaces',
  26. 'no-spaced-func',
  27. 'no-trailing-spaces',
  28. 'no-whitespace-before-property',
  29. 'nonblock-statement-body-position',
  30. 'object-curly-newline',
  31. 'object-curly-spacing',
  32. 'object-property-newline',
  33. 'one-var-declaration-per-line',
  34. 'operator-linebreak',
  35. 'padded-blocks',
  36. 'padding-line-between-statements',
  37. 'rest-spread-spacing',
  38. 'semi-spacing',
  39. 'semi-style',
  40. 'space-before-blocks',
  41. 'space-before-function-paren',
  42. 'space-in-parens',
  43. 'space-infix-ops',
  44. 'space-unary-ops',
  45. 'spaced-comment',
  46. 'switch-colon-spacing',
  47. 'template-tag-spacing',
  48. 'import/newline-after-import',
  49. // eslint-plugin-react rules
  50. 'react/jsx-child-element-spacing',
  51. 'react/jsx-closing-bracket-location',
  52. 'react/jsx-closing-tag-location',
  53. 'react/jsx-curly-spacing',
  54. 'react/jsx-equals-spacing',
  55. 'react/jsx-first-prop-newline',
  56. 'react/jsx-indent',
  57. 'react/jsx-indent-props',
  58. 'react/jsx-max-props-per-line',
  59. 'react/jsx-one-expression-per-line',
  60. 'react/jsx-space-before-closing',
  61. 'react/jsx-tag-spacing',
  62. 'react/jsx-wrap-multilines',
  63. ];