Just commit all of family home before editing 'cause i just accidentally overwrote gaeastohuaosneuh
This commit is contained in:
parent
18bba535b4
commit
84de7930cb
64 changed files with 15325 additions and 0 deletions
36
web/themes/custom/geofresco/gulp-tasks/lint.js
Normal file
36
web/themes/custom/geofresco/gulp-tasks/lint.js
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*eslint strict: ["error", "global"]*/
|
||||
'use strict';
|
||||
|
||||
//=======================================================
|
||||
// Include gulp
|
||||
//=======================================================
|
||||
var gulp = require('gulp');
|
||||
|
||||
//=======================================================
|
||||
// Include Our Plugins
|
||||
//=======================================================
|
||||
var sassLint = require('gulp-sass-lint');
|
||||
var eslint = require('gulp-eslint');
|
||||
|
||||
// Export our tasks.
|
||||
module.exports = {
|
||||
|
||||
// Lint Sass based on .sass-lint.yml config.
|
||||
sass: function() {
|
||||
return gulp.src([
|
||||
'./src/{global,layout,components}/**/*.scss',
|
||||
])
|
||||
.pipe(sassLint())
|
||||
.pipe(sassLint.format());
|
||||
},
|
||||
|
||||
// Lint JavaScript based on .eslintrc config.
|
||||
js: function() {
|
||||
return gulp.src([
|
||||
'./src/{global,layout,components}/**/*.js',
|
||||
'!./src/components/**/vendors/*'
|
||||
])
|
||||
.pipe(eslint())
|
||||
.pipe(eslint.format());
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue