src/content/docs/linter/json/rules.mdx
import { Icon } from "@astrojs/starlight/components";
Below the list of rules supported by Biome, divided by group. Here's a legend of the emojis:
nursery| Rule name | Description | Properties |
|---|---|---|
| noEmptyObjectKeys | Disallow empty keys in JSON objects. | <span class='inline-icon' title="This rule is not released yet"><Icon name="moon" label="This rule is not released yet" size="1.2rem" /></span> |
| noTopLevelLiterals | Require the JSON top-level value to be an array or object. | <span class='inline-icon' title="This rule is not released yet"><Icon name="moon" label="This rule is not released yet" size="1.2rem" /></span> |
| useRequiredScripts | Enforce the presence of required scripts in package.json. |
suspicious| Rule name | Description | Properties |
|---|---|---|
| noBiomeFirstException | Prevents the misuse of glob patterns inside the files.includes field. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title='The rule has a safe fix.'><Icon name="seti:config" label="The rule has a safe fix" size="1.2rem" /></span> |
| noDuplicateDependencies | Prevent the listing of duplicate dependencies. | |
| noDuplicateObjectKeys | Disallow two keys with the same name inside objects. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span> |
| noQuickfixBiome | Disallow the use if quickfix.biome inside editor settings file. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title='The rule has a safe fix.'><Icon name="seti:config" label="The rule has a safe fix" size="1.2rem" /></span> |
| useBiomeIgnoreFolder | Promotes the correct usage for ignoring folders in the configuration file. | <span class='inline-icon' title="This rule is recommended" ><Icon name="approve-check-circle" size="1.2rem" label="This rule is recommended" /></span><span class='inline-icon' title='The rule has a safe fix.'><Icon name="seti:config" label="The rule has a safe fix" size="1.2rem" /></span> |
Missing a rule? Help us by contributing to the analyzer or create a rule suggestion here.