# check-access

Rule `jsdoc/check-access`. Checks that `@access` tags have a valid value.

- Source: jsdoc
- Technologies: JSDoc
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 11.3M weekly downloads of presets that enable it
- Trend: +36.4% last quarter
- Rank: #855 by reach, #1049 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `jsdoc/check-access` | yes | no | package `eslint-plugin-jsdoc` | [docs](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-access.md#repos-sticky-header) |
| Oxlint | `jsdoc/check-access` | no | no | plugin `jsdoc`, category restriction | [docs](https://oxc.rs/docs/guide/usage/linter/rules/jsdoc/check-access.html) |

## Code examples

### Incorrect: the rule reports this

```ts
/**
 * @access foo
 */
function quux (foo) {
```

### Correct: the rule accepts this

```ts
/**
 *
 */
function quux (foo) {
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import jsdoc from "eslint-plugin-jsdoc";

export default [
  {
    plugins: { jsdoc },
    rules: {
      "jsdoc/check-access": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "jsdoc"
  ],
  "rules": {
    "jsdoc/check-access": "error"
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [JSDoc recommended](https://lintradar.dev/presets/jsdoc-recommended.md) | ESLint | `eslint-plugin-jsdoc` | 37 | 8.1M | +23.8% |
| [Ultracite for Oxlint](https://lintradar.dev/presets/ultracite-oxlint.md) | Oxlint | `ultracite` | 475 | 2.1M | +151.7% |
| [JSDoc recommended for TypeScript](https://lintradar.dev/presets/jsdoc-recommended-typescript.md) | ESLint | `eslint-plugin-jsdoc` | 34 | 8.1M | +23.8% |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |
| [XO](https://lintradar.dev/presets/xo.md) | ESLint | `eslint-config-xo` | 618 | 413K | −5.0% |

## Related rules

- [jsdoc/check-property-names](https://lintradar.dev/rules/jsdoc/check-property-names.md): Ensures that property names in JSDoc are not duplicated on the same block and that nested properties have defined roots.
- [jsdoc/empty-tags](https://lintradar.dev/rules/jsdoc/empty-tags.md): Checks tags that are expected to be empty (e.g., `@abstract` or `@async`), reporting if they have content
- [jsdoc/implements-on-classes](https://lintradar.dev/rules/jsdoc/implements-on-classes.md): Prohibits use of `@implements` on non-constructor functions (to enforce the tag only being used on classes/constructors).
- [jsdoc/require-param-name](https://lintradar.dev/rules/jsdoc/require-param-name.md): Requires that all `@param` tags have names.
- [jsdoc/require-property](https://lintradar.dev/rules/jsdoc/require-property.md): Requires that all `@typedef` and `@namespace` tags have `@property` when their type is a plain `object`, `Object`, or `PlainObject`.
- [jsdoc/require-property-description](https://lintradar.dev/rules/jsdoc/require-property-description.md): Requires that each `@property` tag has a `description` value.

---

Web page: https://lintradar.dev/rules/jsdoc/check-access. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
