You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {
  2. "extends": "standard",
  3. "plugins": [ "sort-class-members" ],
  4. "rules": {
  5. "operator-linebreak": [ "error", "before" ],
  6. "object-curly-spacing": [ "error", "always" ],
  7. "array-bracket-spacing": [ "error", "always" ],
  8. "indent": [ "error", 2, { "flatTernaryExpressions": true } ],
  9. "padded-blocks": "off",
  10. "sort-class-members/sort-class-members": [ 2, {
  11. "order": [
  12. "[static-properties]",
  13. "[properties]",
  14. "[conventional-private-properties]",
  15. "constructor",
  16. "[static-methods]",
  17. "[methods]",
  18. "[conventional-private-methods]",
  19. "[accessor-pairs]",
  20. "[getters]",
  21. "[setters]",
  22. "[everything-else]"
  23. ],
  24. "groups": {
  25. "constructor": {
  26. "name": "constructor",
  27. "type": "method",
  28. "sort": "alphabetical"
  29. },
  30. "properties": {
  31. "type": "property",
  32. "sort": "alphabetical"
  33. },
  34. "getters": {
  35. "kind": "get",
  36. "sort": "alphabetical"
  37. },
  38. "setters": {
  39. "kind": "set",
  40. "sort": "alphabetical"
  41. },
  42. "accessor-pairs": {
  43. "accessorPair": true,
  44. "sort": "alphabetical"
  45. },
  46. "static-properties": {
  47. "type": "property",
  48. "static": true,
  49. "sort": "alphabetical"
  50. },
  51. "conventional-private-properties": {
  52. "type": "property",
  53. "name": "/_.+/",
  54. "sort": "alphabetical"
  55. },
  56. "arrow-function-properties": {
  57. "propertyType": "ArrowFunctionExpression",
  58. "sort": "alphabetical"
  59. },
  60. "methods": {
  61. "type": "method",
  62. "sort": "alphabetical"
  63. },
  64. "static-methods": {
  65. "type": "method",
  66. "static": true,
  67. "sort": "alphabetical"
  68. },
  69. "async-methods": {
  70. "type": "method",
  71. "async": true,
  72. "sort": "alphabetical"
  73. },
  74. "conventional-private-methods": {
  75. "type": "method",
  76. "name": "/_.+/",
  77. "sort": "alphabetical"
  78. },
  79. "everything-else": {
  80. "sort": "alphabetical"
  81. }
  82. }
  83. }]
  84. }
  85. }