You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constsourceCode=context.sourceCode??context.getSourceCode();// `context.sourceCode` was added in ESLint v8.40.0. By checking both the property and the method, breaking change is avoided. TODO: Only use property when requiring a minimum version of v8.40.0 or higher of ESLint.
constsourceCode=context.sourceCode??context.getSourceCode();// `context.sourceCode` was added in ESLint v8.40.0. By checking both the property and the method, breaking change is avoided. TODO: Only use property when requiring a minimum version of v8.40.0 or higher of ESLint.
135
+
constfilepath=context.filename??context.getFilename();// `context.filename` was added in ESLint v8.40.0. By checking both the property and the method, breaking change is avoided. TODO: Only use property when requiring a minimum version of v8.40.0 or higher of ESLint.
135
136
// Processors that extract content from a file, such as the markdown
136
137
// plugin extracting fenced code blocks may choose to specify virtual
137
138
// file paths. If this is the case then we need to resolve prettier
138
139
// config and file info using the on-disk path instead of the virtual
context.physicalFilename??context.getPhysicalFilename();// `context.physicalFilename` was added in ESLint v8.40.0. By checking both the property and the method, breaking change is avoided. TODO: Only use property when requiring a minimum version of v8.40.0 or higher of ESLint.
0 commit comments