// Rule Definition
//------------------------------------------------------------------------------
+/** @type {import('../shared/types').Rule} */
module.exports = {
meta: {
type: "layout",
docs: {
- description: "enforce consistent newlines before and after dots",
+ description: "Enforce consistent newlines before and after dots",
recommended: false,
- url: "https://eslint.org/docs/rules/dot-location"
+ url: "https://eslint.org/docs/latest/rules/dot-location"
},
schema: [
// default to onObject if no preference is passed
const onObject = config === "object" || !config;
- const sourceCode = context.getSourceCode();
+ const sourceCode = context.sourceCode;
/**
* Reports if the dot between object and property is on the correct location.