securityos/node_modules/eslint-plugin-unicorn/rules/utils/get-references.js

10 lines
200 B
JavaScript

'use strict';
const getScopes = require('./get-scopes.js');
const getReferences = scope => [...new Set(
getScopes(scope).flatMap(({references}) => references),
)];
module.exports = getReferences;