Stylistic
All rule names start with @stylistic/ prefix.
JS Rules
| Rule Name | Configuration 🔧 |
|---|---|
| array-bracket-spacing | |
| arrow-parens | as-needed |
| arrow-spacing | |
| block-spacing | |
| brace-style | |
| comma-spacing | |
| curly-newline | { consistent: true } |
| dot-location | property |
| eol-last | |
| function-call-argument-newline | consistent |
| function-call-spacing | |
| function-paren-newline | consistent |
| indent | 2, { ignoredNodes: ['PropertyDefinition[decorators]', 'MethodDefinition[decorators]', 'ClassBody.body > Decorator']} |
| indent-binary-ops | 2 |
| key-spacing | |
| linebreak-style | |
| max-statements-per-line | |
| multiline-ternary | always-multiline |
| no-extra-semi | |
| no-floating-decimal | |
| no-mixed-spaces-and-tabs | |
| no-multi-spaces | |
| no-multiple-empty-lines | |
| no-trailing-spaces | |
| nonblock-statement-body-position | |
| object-curly-newline | { consistent: true } |
| object-curly-spacing | always |
| operator-linebreak | before |
| quotes | single |
| rest-spread-spacing | |
| semi | |
| semi-spacing | |
| space-before-blocks | { functions: 'always', classes: 'always', keywords: 'always' } |
| space-infix-ops | |
| space-unary-ops | |
| spaced-comment | |
| switch-colon-spacing | |
| template-curly-spacing | |
| wrap-regex |
TS Rules
| Rule Name | Configuration 🔧 |
|---|---|
| member-delimiter-style | |
| type-annotation-spacing | |
| type-generic-spacing | |
| type-named-tuple-spacing |
JSX Rules
| Rule Name | 🔧 |
|---|---|
| jsx-closing-bracket-location | |
| jsx-closing-tag-location | |
| jsx-curly-newline | consistent |
| jsx-curly-spacing | |
| jsx-equals-spacing | |
| jsx-indent-props | 2 |
| jsx-one-expression-per-line | { allow: 'literal' } |
| jsx-pascal-case | |
| jsx-props-no-multi-spaces | |
| jsx-quotes | prefer-double |
| jsx-self-closing-comp | |
| jsx-wrap-multilines | parens-new-line |