rename resource to service

This commit is contained in:
Mads Rasmussen
2024-04-10 16:03:20 +02:00
parent 67c32b8f84
commit f53486cc71
127 changed files with 420 additions and 423 deletions

View File

@@ -11,12 +11,12 @@ module.exports = {
},
create: function (context) {
return {
// If methods called on *Resource classes are not already wrapped with `await tryExecuteAndNotify()`, then we should suggest to wrap them.
// If methods called on *Service classes are not already wrapped with `await tryExecuteAndNotify()`, then we should suggest to wrap them.
CallExpression: function (node) {
if (
node.callee.type === 'MemberExpression' &&
node.callee.object.type === 'Identifier' &&
node.callee.object.name.endsWith('Resource') &&
node.callee.object.name.endsWith('Service') &&
node.callee.property.type === 'Identifier' &&
node.callee.property.name !== 'constructor'
) {