lib/config/config-initializer.js
function getLocalESLintVersion() {
    try {
        const eslintPath = relativeModuleResolver("eslint", path.join(process.cwd(), "__placeholder__.js"));
        const eslint = require(eslintPath);

        return eslint.linter.version || null;
    } catch (_err) {
        return null;
    }
}
function getLocalESLintVersion() {
    try {
        const eslintPath = relativeModuleResolver("eslint", path.join(process.cwd(), "__placeholder__.js"));
        const eslint = require(eslintPath);

        return eslint.linter.version || null;
    } catch (_err) {
        return null;
    }
}
function getLocalESLintVersion ( ) { try { const eslintPath = relativeModuleResolver ( "eslint" , path . join ( process . cwd ( ) , "__placeholder__.js" ) ) ; const eslint = require ( eslintPath ) ; return eslint . linter . version || null ; } catch ( _err ) { return null ; } }
Get the version of the local ESLint.
@returns {string|null} The version. If the local ESLint was not found, returns null.
Get the version of the local ESLint .