]>
git.proxmox.com Git - pve-eslint.git/blob - eslint/lib/rules/no-sync.js
ea40df12933b5c994953e484b8db63b4887981ba
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 //------------------------------------------------------------------------------
22 description
: "disallow synchronous methods",
24 url
: "https://eslint.org/docs/rules/no-sync"
36 additionalProperties
: false
41 noSync
: "Unexpected sync method: '{{propertyName}}'."
46 const selector
= context
.options
[0] && context
.options
[0].allowAtRootLevel
47 ? ":function MemberExpression[property.name=/.*Sync$/]"
48 : "MemberExpression[property.name=/.*Sync$/]";
56 propertyName
: node
.property
.name