Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add no-empty to recommended presets
  • Loading branch information
JLHwung committed Jul 17, 2026
commit 59411a58ed7bcfc742857b653a66d170f631982c
2 changes: 2 additions & 0 deletions eslint/babel-eslint-plugin/src/configs/all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ export const name = "babel/eslint-plugin/all";
export const rules: Record<string, SeverityString> = {
// ESLint core rules
"new-cap": "off",
"no-empty": "off",
"no-undef": "off",
"no-unused-expressions": "off",

// babel-eslint-plugin rules
"babel/new-cap": "error",
"babel/no-empty": "error",
"babel/no-undef": "error",
"babel/no-unused-expressions": "error",
};
3 changes: 3 additions & 0 deletions eslint/babel-eslint-plugin/src/configs/recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ import type { SeverityString } from "../types.ts";
export const name = "babel/eslint-plugin/recommended";
export const rules: Record<string, SeverityString> = {
// ESLint core rules
"no-empty": "off",

// babel-eslint-plugin rules
"babel/no-empty": "error",
};
2 changes: 1 addition & 1 deletion eslint/babel-eslint-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const meta: ESLint.Plugin["meta"] = {
version: PACKAGE_JSON.version,
};

type Rules = "new-cap" | "no-undef" | "no-unused-expressions";
type Rules = "new-cap" | "no-empty" | "no-undef" | "no-unused-expressions";

const rules: Record<Rules, Rule.RuleModule> = {
"new-cap": newCap,
Expand Down