---
schema_version: "1"
id: 491b5ada0e1a4c488d6bfb44e2b087b9e28475f41a07a0445157cb44809c3400
title: Disallow with Statements (no-with)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/cli/validation-rules-no-with.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/validation-rules-no-with.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 59ad09248318501e072dfae93e85e940470b7ddf7bcade05ab7be90f522d08b5
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# Disallow with Statements (no-with)

Prevents using `with` statements, which adds members of an object to the current scope in a way that makes it hard to predict or view impact or behavior. This is a standard rule built into ESLint.

For complete details about this rule, including examples, see the corresponding ESLint documentation, [disallow with statements (no-with)](https://eslint.org/docs/rules/no-with).
