UNPKG
eslint-plugin-react-pug
Version:
latest (0.8.4)
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.1
0.7.0
0.6.0
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.0
0.1.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Add supporting of pugjs with react
ezhlobo/eslint-plugin-react-pug
eslint-plugin-react-pug
/
lib
/
util
/
getVariables.js
10 lines
(8 loc)
•
193 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
{ findVariablesInTemplate } =
require
(
'pug-uses-variables'
)
module
.
exports
=
(
template
) =>
{
try
{
return
findVariablesInTemplate
(template) }
catch
(error) {
return
[] } }