Skip to content

Commit 59ac870

Browse files
committed
Setup prettier/eslint
1 parent 6d53e7d commit 59ac870

File tree

6 files changed

+748
-364
lines changed

6 files changed

+748
-364
lines changed

.eslintrc

-7
This file was deleted.

config.js

+4-10
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ module.exports = {
2424
webpack: {
2525
entry: {
2626
// Drizzle UI scripts
27-
'drizzle/scripts/drizzle':
28-
'./src/assets/drizzle/scripts/drizzle.js',
27+
'drizzle/scripts/drizzle': './src/assets/drizzle/scripts/drizzle.js',
2928
// Common toolkit scripts
30-
'toolkit/scripts/toolkit':
31-
'./src/assets/toolkit/scripts/toolkit.js'
29+
'toolkit/scripts/toolkit': './src/assets/toolkit/scripts/toolkit.js'
3230
},
3331
output: {
3432
path: './dist/assets',
@@ -73,10 +71,7 @@ module.exports = {
7371
tasks: ['js']
7472
},
7573
{
76-
match: [
77-
'./src/**/*.hbs',
78-
'./src/data/**/*'
79-
],
74+
match: ['./src/**/*.hbs', './src/data/**/*'],
8075
tasks: ['drizzle']
8176
}
8277
]
@@ -90,8 +85,7 @@ module.exports = {
9085
indent_with_tabs: false,
9186
max_preserve_newlines: 1,
9287
wrap_line_length: 0,
93-
unformatted:
94-
`a abbr acronym address b bdo big cite code col del dfn dt em font
88+
unformatted: `a abbr acronym address b bdo big cite code col del dfn dt em font
9589
h1 h2 h3 h4 h5 h6 i img ins kbd mark pre q s samp small span
9690
strike strong sub sup tt u var`.split(' ')
9791
/* eslint-enable camelcase */

gulpfile.js

+8-16
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@ const config = require('./config');
1212
Object.assign(config.drizzle, { helpers });
1313

1414
// Register core tasks
15-
[
16-
'clean',
17-
'copy',
18-
'js',
19-
'serve',
20-
'watch'
21-
].forEach(name => tasks[name](gulp, config[name]));
15+
['clean', 'copy', 'js', 'serve', 'watch'].forEach(name =>
16+
tasks[name](gulp, config[name])
17+
);
2218

2319
// Register special CSS tasks
2420
tasks.css(gulp, config['css:toolkit']);
@@ -32,12 +28,7 @@ gulp.task('drizzle', () => {
3228
});
3329

3430
// Register frontend composite task
35-
gulp.task('frontend', [
36-
'drizzle',
37-
'copy',
38-
'css',
39-
'js'
40-
]);
31+
gulp.task('frontend', ['drizzle', 'copy', 'css', 'js']);
4132

4233
// Register build task (for continuous deployment via Netflify)
4334
gulp.task('build', ['clean'], done => {
@@ -51,10 +42,11 @@ gulp.task('build', ['clean'], done => {
5142
*/
5243
gulp.task('demo', () => {
5344
const buildDest = `${config.drizzle.dest.pages}/**/*`;
54-
return gulp.src(buildDest)
55-
.pipe(ghPages({
45+
return gulp.src(buildDest).pipe(
46+
ghPages({
5647
cacheDir: 'demo'
57-
}));
48+
})
49+
);
5850
});
5951

6052
// Register default task

0 commit comments

Comments
 (0)