diff --git a/assets.cjs b/assets.js similarity index 100% rename from assets.cjs rename to assets.js diff --git a/base.cjs b/base.js similarity index 100% rename from base.cjs rename to base.js diff --git a/npm.cjs b/npm.js similarity index 100% rename from npm.cjs rename to npm.js diff --git a/package.json b/package.json index f281584..e166d57 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "access": "public" }, "scripts": { - "lint": "eslint . --ext .cjs" + "lint": "eslint ." }, "license": "Apache-2.0", "peerDependencies": { diff --git a/utils.cjs b/utils.js similarity index 95% rename from utils.cjs rename to utils.js index c973cdf..af227e6 100644 --- a/utils.cjs +++ b/utils.js @@ -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 );