diff --git a/options.js b/options.js index 9e85992..dbd55f3 100644 --- a/options.js +++ b/options.js @@ -2,12 +2,21 @@ const pkg = require('./package.json') const stdVersion = require('standard/package.json').version const stdOpts = require('standard/options.js') +const standardConf = require('standard/eslintrc.json') + +const resolvedConf = { + extends: standardConf.extends.map(function (configName) { + return require.resolve(`eslint-config-${configName}`) + }) +} + const opts = Object.assign({}, stdOpts, { bugs: pkg.bugs.url, cmd: 'standardx', eslintConfig: { - baseConfig: require('standard/eslintrc.json'), - useEslintrc: true + baseConfig: resolvedConf, + useEslintrc: true, + resolvePluginsRelativeTo: __dirname }, homepage: pkg.homepage, tagline: 'Use JavaScript Standard Style (tweaked by standardx)',