Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F20064478
eslint
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1007 B
Subscribers
None
eslint
View Options
#!/usr/bin/env bash
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# To run, install node and npm, then install eslint:
# sudo npm install eslint -g
# EsLint documentation is available from http://eslint.org
WHICH_ESLINT
=
`
which eslint
2
>/dev/null
`
if
[
"
${
WHICH_ESLINT
}
x"
==
"x"
]
;
then
echo
"You need to have eslint installed to run this script"
echo
" Install node.js and npm, then install eslint like this:"
echo
" sudo npm install -g eslint"
exit
1
else
if
command
-v realpath>/dev/null
2
>
&
1
;
then
CURRENT_FILE
=
`
realpath
"
$0
"
`
else
CURRENT_FILE
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
/
$(
basename
$0
)
"
fi
STATIC_ANALYSIS_DIR
=
`
dirname
"
$CURRENT_FILE
"
`
for
dir in
$(
find
"
$1
"
-type d
)
;
do
eslint
"
$dir
"
/*.js*
if
[
$?
-ne
0
]
;
then
exit
1
fi
done
fi
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sun, Feb 23, 7:16 PM (8 m, 51 s)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a2/ac/03a4d60b1602921d5f886bddf337
Attached To
rENIG Enigmail
Event Timeline
Log In to Comment