]>
git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/fixtures/testers/rule-tester/no-var.js
96a410fe78a793845ec767085684f22999a28e52
2 * @fileoverview Rule to remove var statement
3 * @author Nicholas C. Zakas
6 //------------------------------------------------------------------------------
8 //------------------------------------------------------------------------------
18 var sourceCode
= context
.getSourceCode();
21 "VariableDeclaration": function(node
) {
22 if (node
.kind
=== "var") {
25 loc
: sourceCode
.getFirstToken(node
).loc
,
27 fix: function(fixer
) {
28 return fixer
.remove(sourceCode
.getFirstToken(node
));