Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Commit a841d1a

Browse files
Bump jshint from 2.11.1 to 2.11.2 (#30)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Nick Amoscato <nick@amoscato.com>
1 parent 653e8be commit a841d1a

File tree

12 files changed

+140
-21
lines changed

12 files changed

+140
-21
lines changed

.github/workflows/test.yaml renamed to .github/workflows/js.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: test
1+
name: js
22
on:
33
pull_request:
44
push:
55
branches: [master]
66
jobs:
7-
js:
7+
test:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout code
@@ -20,3 +20,19 @@ jobs:
2020
run: npm ci
2121
- name: Test JavaScript
2222
run: npm test
23+
lint:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
- name: Read .nvmrc
29+
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
30+
id: nvm
31+
- name: Use Node.js ${{ steps.nvm.outputs.NVMRC }}
32+
uses: actions/setup-node@v1
33+
with:
34+
node-version: '${{ steps.nvm.outputs.NVMRC }}'
35+
- name: Install dependencies
36+
run: npm ci
37+
- name: Lint JavaScript
38+
run: npx gulp js:lint

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLibraryMappings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLinters/jshint.xml

Lines changed: 85 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.jshintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"node": true
3+
}

dist/multiselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@
515515

516516
/**
517517
* @name AmoMultiselectFactory#_optionsRegularExpression
518-
*
518+
*
519519
* @description
520520
* Options attribute value regular expression
521521
*

gulpfile.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ gulp.task('all', 'Build application', [
5151
'css:app',
5252
'js:app',
5353
'js:libs',
54-
'js:lint'
5554
]);
5655

5756
gulp.task('dist', 'Build multiselect', [
@@ -108,9 +107,13 @@ gulp.task('js:libs', 'Compile third party JavaScript', function() {
108107
});
109108

110109
gulp.task('js:lint', 'Run JSHint to check for JavaScript code quality', function() {
111-
gulp.src(js.src.app)
110+
gulp.src(js.src.app.concat([
111+
'*.js',
112+
'tests/**/*.js'
113+
]))
112114
.pipe(gulpJshint())
113-
.pipe(gulpJshint.reporter('default'));
115+
.pipe(gulpJshint.reporter('default'))
116+
.pipe(gulpJshint.reporter('fail'));
114117
});
115118

116119
gulp.task('serve', 'Run a local webserver', function() {

karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ module.exports = function(config) {
1515
autoWatch: true,
1616
browsers: ['ChromeHeadless'],
1717
singleRun: false
18-
})
19-
}
18+
});
19+
};

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/multiselect.factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
/**
1717
* @name AmoMultiselectFactory#_optionsRegularExpression
18-
*
18+
*
1919
* @description
2020
* Options attribute value regular expression
2121
*

0 commit comments

Comments
 (0)