]>
git.proxmox.com Git - pve-eslint.git/blob - eslint/lib/rules/no-sync.js
2 * @fileoverview Rule to check for properties whose identifier ends with the string Sync
3 * @author Matt DuVall<http://mattduvall.com/>
4 * @deprecated in ESLint v7.0.0
9 //------------------------------------------------------------------------------
11 //------------------------------------------------------------------------------
13 /** @type {import('../shared/types').Rule} */
23 description
: "Disallow synchronous methods",
25 url
: "https://eslint.org/docs/rules/no-sync"
37 additionalProperties
: false
42 noSync
: "Unexpected sync method: '{{propertyName}}'."
47 const selector
= context
.options
[0] && context
.options
[0].allowAtRootLevel
48 ? ":function MemberExpression[property.name=/.*Sync$/]"
49 : "MemberExpression[property.name=/.*Sync$/]";
57 propertyName
: node
.property
.name