all.js 262 B

123456789
  1. 'use strict';
  2. const {rules, ...baseConfigs} = require('./recommended.js');
  3. module.exports = {
  4. ...baseConfigs,
  5. rules: Object.fromEntries(Object.entries(rules).map(
  6. ([ruleId, severity]) => [ruleId, ruleId.startsWith('unicorn/') ? 'error' : severity],
  7. )),
  8. };