Skip to content

Commit

Permalink
remove type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher committed Feb 21, 2024
1 parent d1465bc commit 674cd1f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions configs/all.js
Expand Up @@ -9,10 +9,6 @@ function filterRules(rules, predicate) {
return fromEntries(entries(rules).filter((entry) => predicate(entry[1])));
}

/**
* @param {object} rules - rules object mapping rule name to rule module
* @returns {Record<string, 2>}
*/
function configureAsError(rules) {
return fromEntries(Object.keys(rules).map((key) => [`react/${key}`, 2]));
}
Expand All @@ -24,12 +20,6 @@ const deprecatedRules = filterRules(allRules, (rule) => rule.meta.deprecated);

module.exports = {
plugins: {
/**
* @type {{
* deprecatedRules: Record<string, import('eslint').Rule.RuleModule>,
* rules: Record<string, import('eslint').Rule.RuleModule>,
* }}
*/
react: {
deprecatedRules,
rules: allRules,
Expand Down
1 change: 0 additions & 1 deletion lib/rules/index.js
Expand Up @@ -2,7 +2,6 @@

/* eslint global-require: 0 */

/** @satisfies {Record<string, import('eslint').Rule.RuleModule>} */
module.exports = {
'boolean-prop-naming': require('./boolean-prop-naming'),
'button-has-type': require('./button-has-type'),
Expand Down

0 comments on commit 674cd1f

Please sign in to comment.