Skip to main content
Version: 4.0

Stylistic

All rule names start with @stylistic/ prefix.

JS Rules

Rule NameConfiguration 🔧
array-bracket-spacing
arrow-parensas-needed
arrow-spacing
block-spacing
brace-style
comma-spacing
curly-newline{ consistent: true }
dot-locationproperty
eol-last
function-call-argument-newlineconsistent
function-call-spacing
function-paren-newlineconsistent
indent2, { ignoredNodes: ['PropertyDefinition[decorators]', 'MethodDefinition[decorators]', 'ClassBody.body > Decorator']}
indent-binary-ops2
key-spacing
linebreak-style
max-lenrefer source code
max-statements-per-line
multiline-ternaryalways-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-spacingalways
operator-linebreakbefore
quotessingle
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

View the full list of JavaScript rules here

TS Rules

Rule NameConfiguration 🔧
member-delimiter-style
type-annotation-spacing
type-generic-spacing
type-named-tuple-spacing

View the full list of Typescript rules here

JSX Rules

Rule Name🔧
jsx-closing-bracket-location
jsx-curly-newlineconsistent
jsx-curly-spacing
jsx-equals-spacing
jsx-indent-props2
jsx-one-expression-per-line{ allow: 'literal' }
jsx-pascal-case
jsx-props-no-multi-spaces
jsx-quotesprefer-double
jsx-self-closing-comp
jsx-wrap-multilinesparens-new-line

View the full list of JSX rules here