Skip to content

Commit 37bfcc2

Browse files
authored
Allow js files that are not linted (#335)
Not something we would want to use generally, but maybe we can allow an exception here.
1 parent 3157b56 commit 37bfcc2

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"start": "LIVERELOAD=true gulp preview",
7575
"lint": "npm run lint:css && npm run lint:js",
7676
"lint:css": "stylelint \"src/css/**/*.css\"",
77-
"lint:js": "eslint gulpfile.js \"gulp.d/**/*.js\" \"src/{helpers,js}/**/*.js\"",
77+
"lint:js": "eslint gulpfile.js \"gulp.d/**/*.js\" \"src/{helpers,js}/**/*.js\" --ignore-pattern \"src/js/no-lint/**/*.js\"",
7878
"build": "gulp bundle"
7979
},
8080
"dependencies": {
File renamed without changes.

src/js/site.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import './24-graphacademy-certification'
1919
import './23-yelp-agreement'
2020
import './25-graphgist'
2121
// import './30-personalisation'
22-
import './31-scarf-pixel'
22+
import './no-lint/31-scarf-pixel'
2323
import './40-challenges'
2424
import './50-cheat-sheet-toggle'
2525
import './60-docs-roles'

0 commit comments

Comments
 (0)