Skip to content

Commit

Permalink
docs ~ (eg) fix npx biome lint . complaints (lint/complexity/useArr…
Browse files Browse the repository at this point in the history
…owFunction)
  • Loading branch information
rivy committed Apr 21, 2024
1 parent 27ef3dd commit 6c60794
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eg/show-paths.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const xdgAppPaths = require(xdgAppPathsModulePath);

// Extend appPaths with a "log" location function
// eslint-disable-next-line functional/immutable-data
xdgAppPaths.log = function (dirOptions) {
xdgAppPaths.log = (dirOptions) => {
const self = xdgAppPaths; // * bind `self` to `appPaths` => avoids `this` variability due to caller context
function typeOf(x) {
// * use avoids circumvention of eslint variable tracking for `x`
Expand Down
2 changes: 1 addition & 1 deletion eg/show-paths.esm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function objectEntries(obj) {
}

// Extend appPaths with a "log" location function
xdgAppPaths.log = function (dirOptions = null) {
xdgAppPaths.log = (dirOptions = null) => {
const self = xdgAppPaths; // * bind `self` to `appPaths` => avoids `this` variability due to caller context
function typeOf(x) {
// * use avoids circumvention of eslint variable tracking for `x`
Expand Down

0 comments on commit 6c60794

Please sign in to comment.