refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
39
home/ags/node_modules/eslint/lib/rules/no-with.js
generated
vendored
39
home/ags/node_modules/eslint/lib/rules/no-with.js
generated
vendored
|
|
@ -1,39 +0,0 @@
|
|||
/**
|
||||
* @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" });
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue