Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F23020460
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
Mon, May 12, 6:17 PM (13 h, 8 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e1/1e/5ff7052c086f2799e35c156d5067
Attached To
rENIG Enigmail
Event Timeline
Log In to Comment