dot-location
eslint
Safe autofix
eslint.config.js
export default [
{
rules: {
"dot-location": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
var foo = object
.property;var foo = object.
property;var foo = object.
property;
var bar = (
object
).
property;
var baz = object.property;var foo = object
.property;
var bar = object.property;Examples from the ESLint documentation.
dot-location
eslint
export default [
{
rules: {
"dot-location": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce consistent newlines before and after dots in <template>
Disallow specified global variables
Disallow assignment operators in return statements
Enforce variables to be declared either together or separately in functions
Require using Error objects as Promise rejection reasons