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:
Spencer
2019-07-09 13:24:13 -07:00
committed by GitHub
parent f69840c50f
commit 7c1573fb07
119 changed files with 4506 additions and 3521 deletions

View File

@ -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