Configuration
Recommended Config
Section titled “Recommended Config”The quickest setup — one line, all 57 rules enabled:
import ceaseNonsense from "eslint-plugin-cease-nonsense";
export default [ceaseNonsense.configs.recommended];Rules are grouped into four categories with these default severities:
| Category | Rules | Default Severity |
|---|---|---|
| React Rules | 21 rules | warn / error |
| Roblox & Luau Rules | 17 rules | warn / error |
| Naming & Conventions | 7 rules | warn |
| General Logic & Style | 12 rules | warn / error |
Severity Levels
Section titled “Severity Levels”Most rules support both warn and error. The recommended config uses warn for most rules and reserves error for
things that are almost certainly bugs.
Per-Rule Severity Example
Section titled “Per-Rule Severity Example”export default [ { rules: { "cease-nonsense/ban-react-fc": "error", // Already error in recommended "cease-nonsense/no-god-components": "warn", }, },];Category Presets
Section titled “Category Presets”Pull in rules for a single category instead of everything:
import ceaseNonsense from "eslint-plugin-cease-nonsense";
export default [ // React only ...ceaseNonsense.rulesets.react,
// Roblox only ...ceaseNonsense.rulesets.roblox,
// Naming only ...ceaseNonsense.rulesets.naming,];Disabling Rules
Section titled “Disabling Rules”Per-File
Section titled “Per-File”// eslint-disable-next-line cease-nonsense/ban-react-fcconst MyComponent = React.forwardRef<Props, Ref>((props, ref) => { // ...});Per-Project
Section titled “Per-Project”export default [ ceaseNonsense.configs.recommended, { rules: { "cease-nonsense/ban-react-fc": "off", "cease-nonsense/no-god-components": "off", }, },];Fixable Rules
Section titled “Fixable Rules”These rules support auto-fix via eslint --fix:
| Rule | Fix Type |
|---|---|
no-commented-code | Removes dead comments |
prefer-early-return | Restructures control flow |
prefer-pattern-replacements | Applies pattern swaps |
no-unused-imports | Removes dead imports |
prefer-ternary-conditional-rendering | Suggestion fix |
no-shorthand-names | Suggestion fix |
bun run eslint . --fix