12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- {
- "extends": "standard",
- "plugins": [ "sort-class-members" ],
- "rules": {
- "operator-linebreak": [ "error", "before" ],
- "object-curly-spacing": [ "error", "always" ],
- "array-bracket-spacing": [ "error", "always" ],
- "indent": [ "error", 2, { "flatTernaryExpressions": true } ],
- "padded-blocks": "off",
- "sort-class-members/sort-class-members": [ 2, {
- "order": [
- "[static-properties]",
- "[properties]",
- "[conventional-private-properties]",
- "constructor",
- "[static-methods]",
- "[methods]",
- "[conventional-private-methods]",
- "[accessor-pairs]",
- "[getters]",
- "[setters]",
- "[everything-else]"
- ],
- "groups": {
- "constructor": {
- "name": "constructor",
- "type": "method",
- "sort": "alphabetical"
- },
- "properties": {
- "type": "property",
- "sort": "alphabetical"
- },
- "getters": {
- "kind": "get",
- "sort": "alphabetical"
- },
- "setters": {
- "kind": "set",
- "sort": "alphabetical"
- },
- "accessor-pairs": {
- "accessorPair": true,
- "sort": "alphabetical"
- },
- "static-properties": {
- "type": "property",
- "static": true,
- "sort": "alphabetical"
- },
- "conventional-private-properties": {
- "type": "property",
- "name": "/_.+/",
- "sort": "alphabetical"
- },
- "arrow-function-properties": {
- "propertyType": "ArrowFunctionExpression",
- "sort": "alphabetical"
- },
- "methods": {
- "type": "method",
- "sort": "alphabetical"
- },
- "static-methods": {
- "type": "method",
- "static": true,
- "sort": "alphabetical"
- },
- "async-methods": {
- "type": "method",
- "async": true,
- "sort": "alphabetical"
- },
- "conventional-private-methods": {
- "type": "method",
- "name": "/_.+/",
- "sort": "alphabetical"
- },
- "everything-else": {
- "sort": "alphabetical"
- }
- }
- }]
- }
- }
|