all.js 401 B

1234567891011121314151617
  1. 'use strict';
  2. const conflictingRules = require('./conflicting-rules.js');
  3. module.exports = {
  4. ...require('./base.js'),
  5. rules: {
  6. ...Object.fromEntries(
  7. Object.entries(require('./recommended.js').rules)
  8. .filter(
  9. ruleEntry =>
  10. !Object.keys(conflictingRules.rules).includes(ruleEntry[0]),
  11. )
  12. .map(ruleEntry => [ruleEntry[0], 'error']),
  13. ),
  14. ...conflictingRules.rules,
  15. },
  16. };