'use strict';

const _ = require('lodash/fp');
const reqAll = require('req-all');

const rules = reqAll('rules', {camelize: false});

module.exports = {
  rules,
  configs: {
    recommended: {
      env: {
        es6: true
      },
      parserOptions: {
        ecmaVersion: 7,
        sourceType: 'module'
      },
      rules: _.flow(
        _.mapValues('meta.docs.recommended'),
        _.mapKeys(key => 'lodash-fp/' + key)
      )(rules)
    }
  }
};

@@ -12,40 +12,8 @@
 ';%0A%0A
-const _ = require('lodash/fp');%0A
 cons
@@ -95,16 +95,214 @@
 lse%7D);%0A%0A
+const recommendedRules = Object.keys(rules)%0A  .map(key =%3E %5B%5B%60lodash-fp/$%7Bkey%7D%60%5D, rules%5Bkey%5D.meta.docs.recommended%5D)%0A  .reduce((res, item) =%3E %7B%0A    res%5Bitem%5B0%5D%5D = item%5B1%5D;%0A    return res;%0A  %7D, %7B%7D);%0A%0A
 module.e
@@ -495,121 +495,24 @@
 es: 
-_.flow(%0A        _.mapValues('meta.docs.recommended'),%0A        _.mapKeys(key =%3E 'lodash-fp/' + key)%0A      )(r
+recommendedR
 ules
-)
 %0A   

Simplify recommended settings generation