Skip to content

Commit

Permalink
Refactor lint / tests / bower (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Aug 1, 2019
1 parent 6c0e103 commit 3e5bf1e
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 277 deletions.
3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

3 changes: 0 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[*.py]
indent_size = 4
3 changes: 0 additions & 3 deletions .jshintrc

This file was deleted.

30 changes: 0 additions & 30 deletions bower.json

This file was deleted.

11 changes: 5 additions & 6 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
fs = require('fs')
path = require('path')
gulp = require('gulp')
jshint = require('gulp-jshint')
stylish = require('jshint-stylish')
shell = require('gulp-shell')
eslint = require('gulp-eslint')
shell = require('gulp-shell')
yaml = require('js-yaml')

gulp.task 'lint', ->
Expand All @@ -21,8 +20,8 @@ gulp.task 'lint', ->
'./source/js/utils.js',
'./source/js/schemes/muse.js',
'./source/js/schemes/pisces.js'
]).pipe jshint()
.pipe jshint.reporter(stylish)
]).pipe eslint()
.pipe eslint.format()

gulp.task 'lint:stylus', shell.task [
'"./node_modules/.bin/stylint" ./source/css/'
Expand Down Expand Up @@ -57,4 +56,4 @@ gulp.task 'validate:languages', (cb) ->
cb(errors)


gulp.task 'default', gulp.parallel('lint', 'validate:config', 'validate:languages')
gulp.task 'default', gulp.series('lint', 'validate:config', 'validate:languages')
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@
"all-contributors-cli": "^6.8.1",
"coffeescript": "^2.4.1",
"eslint": "^6.1.0",
"eslint-config-theme-next": "^1.1.0",
"gulp": "^4.0.2",
"gulp-jshint": "^2.1.0",
"gulp-eslint": "^6.0.0",
"gulp-shell": "^0.7.1",
"js-yaml": "^3.13.1",
"jshint": "^2.10.2",
"jshint-stylish": "^2.2.1",
"stylint": "^2.0.0"
}
}
4 changes: 2 additions & 2 deletions source/js/exturl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions source/js/scrollspy.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* ========================================================================
* Bootstrap: scrollspy.js v3.3.2
* http://getbootstrap.com/javascript/#scrollspy
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
* Bootstrap: scrollspy.js v3.3.2
* http://getbootstrap.com/javascript/#scrollspy
* ========================================================================
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */

/**
* Customized by iissnan & Ivan.Nginx
Expand Down
23 changes: 0 additions & 23 deletions test/.jshintrc

This file was deleted.

133 changes: 0 additions & 133 deletions test/helpers.js

This file was deleted.

65 changes: 0 additions & 65 deletions test/intern.js

This file was deleted.

0 comments on commit 3e5bf1e

Please sign in to comment.