packages/textlint-server-package-manager/src/textlint-server-package-manager.js
/**
     * check integrity textlintrc and installed packages.
     * @returns {Promise}
     */
check integrity textlintrc and installed packages.
@returns {Promise}
check integrity textlintrc and installed packages . @returns { Promise }
checkIntegrity() {
        return npm.list(this.packageDirectory).then(packageNames => {
            return this.getTextlintrc().then(() => {
                const packageNames = toPackageList(this.textlintrcFilePath);
                return packageNames.every(packageName => {
                    return packageNames.indexOf(packageName) !== -1;
                });
            });
        });
    }
checkIntegrity ( ) { return npm . list ( this . packageDirectory ) . then ( packageNames => { return this . getTextlintrc ( ) . then ( ( ) => { const packageNames = toPackageList ( this . textlintrcFilePath ) ; return packageNames . every ( packageName => { return packageNames . indexOf ( packageName ) !== - 1 ; } ) ; } ) ; } ) ; }
check integrity textlintrc and installed packages.
check integrity textlintrc and installed packages .