UNPKG

@jimmy.codes/eslint-config

Version:

A simple, modern ESLint config that covers most use cases.

13 lines (11 loc) 231 B
// src/utils/upwarn.ts var upwarn = (rules = {}) => { return Object.fromEntries( Object.entries(rules).map(([rule, option]) => { return [rule, option === "warn" ? "error" : option]; }) ); }; export { upwarn };