|
12345678910111213141516171819202122232425262728293031 |
-
-
- "use strict";
-
-
-
-
-
- const load = require("../lib/load-rules"),
- Rules = require("../lib/rules");
- const rules = new Rules();
-
-
-
-
-
- const enabledRules = Object.keys(load()).reduce((result, ruleId) => {
- if (!rules.get(ruleId).meta.deprecated) {
- result[ruleId] = "error";
- }
- return result;
- }, {});
-
-
-
-
-
- module.exports = { rules: enabledRules };
|