Use standard and prettier (#10)
* 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
This commit is contained in:
19
Gruntfile.js
19
Gruntfile.js
@ -1,19 +1,22 @@
|
||||
module.exports = function (grunt) {
|
||||
const { resolve } = require('path');
|
||||
|
||||
module.exports = function(grunt) {
|
||||
// load plugins
|
||||
require('load-grunt-config')(grunt, {
|
||||
configPath: __dirname + '/grunt/config',
|
||||
configPath: resolve(__dirname, 'grunt/config'),
|
||||
init: true,
|
||||
config: {
|
||||
distDir: __dirname + '/dist',
|
||||
bowerSubmodule: __dirname + '/src/bower_es_js',
|
||||
distDir: resolve(__dirname, 'dist'),
|
||||
bowerSubmodule: resolve(__dirname, 'src/bower_es_js'),
|
||||
meta: {
|
||||
banner: '/*! <%= package.name %> - v<%= package.version %> - ' +
|
||||
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'
|
||||
}
|
||||
}
|
||||
' Licensed <%= package.license %> */\n',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
// load task definitions
|
||||
|
||||
Reference in New Issue
Block a user