persona-community-5/.pnpm-store/v3/files/ef/c6339960a07bcb6952f78c7d8a2a19b88921d7ce2f4b62583bd4fb2cfa8b53cdd5a2449de879af847103e890ffcdc44e4f7bb492809ef5e42b207fb418e397
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

40 lines
876 B
Plaintext

/**
* @fileoverview Rule to flag use of with statement
* @author Nicholas C. Zakas
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../shared/types').Rule} */
module.exports = {
meta: {
type: "suggestion",
docs: {
description: "Disallow `with` statements",
recommended: true,
url: "https://eslint.org/docs/latest/rules/no-with"
},
schema: [],
messages: {
unexpectedWith: "Unexpected use of 'with' statement."
}
},
create(context) {
return {
WithStatement(node) {
context.report({ node, messageId: "unexpectedWith" });
}
};
}
};