* switch from custom eslint config to standard + prettier * fix new standard eslint violations * add editorconfig file * auto-fix all other violations * update lint yarn script * remove jshint comment
25 lines
780 B
JavaScript
25 lines
780 B
JavaScript
const { resolve } = require('path');
|
|
|
|
module.exports = function(grunt) {
|
|
// load plugins
|
|
require('load-grunt-config')(grunt, {
|
|
configPath: resolve(__dirname, 'grunt/config'),
|
|
init: true,
|
|
config: {
|
|
distDir: resolve(__dirname, 'dist'),
|
|
bowerSubmodule: resolve(__dirname, 'src/bower_es_js'),
|
|
meta: {
|
|
banner:
|
|
'/*! <%= package.name %> - v<%= package.version %> - ' +
|
|
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
|
|
'<%= package.homepage ? " * " + package.homepage + "\\n" : "" %>' +
|
|
' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= package.author.company %>;' +
|
|
' Licensed <%= package.license %> */\n',
|
|
},
|
|
},
|
|
});
|
|
|
|
// load task definitions
|
|
grunt.loadTasks('grunt');
|
|
};
|