Skip to content

Commit

Permalink
Rever to standard .js extension (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukiffer committed Apr 15, 2024
1 parent 521e671 commit 5c5976a
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"access": "public"
},
"scripts": {
"lint": "eslint . --ext .cjs"
"lint": "eslint ."
},
"license": "Apache-2.0",
"peerDependencies": {
Expand Down
1 change: 1 addition & 0 deletions utils.cjs → utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const path = require('path');
function findPlugin(plugins, pluginName) {
// plugins can be a string (just the name) or a tuple of string and configuration object
const index = plugins.findIndex(plugin =>
// eslint-disable-next-line comma-dangle
Array.isArray(plugin) ? plugin[0] === pluginName : plugin === pluginName
);

Expand Down

0 comments on commit 5c5976a

Please sign in to comment.