no-whitespace-before-property
eslint
Safe autofix
eslint.config.js
export default [
{
rules: {
"no-whitespace-before-property": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
foo [bar]
foo. bar
foo .bar
foo. bar. baz
foo. bar()
.baz()
foo
.bar(). baz()foo.bar
foo[bar]
foo[ bar ]
foo.bar.baz
foo
.bar().baz()
foo
.bar()
.baz()
foo.
bar().
baz()Examples from the ESLint documentation.
no-whitespace-before-property
eslint
export default [
{
rules: {
"no-whitespace-before-property": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Require using Error objects as Promise rejection reasons
Disallow loops with a body that allows only one iteration
Disallow specified global variables
Disallow redundant return statements