Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added prettier
  • Loading branch information
patorjk committed Apr 8, 2023
1 parent adcd642 commit e01be3e
Show file tree
Hide file tree
Showing 14 changed files with 7,333 additions and 6,887 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
@@ -0,0 +1,2 @@
fonts
importable-fonts
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -6,4 +6,3 @@ script:
- npm test

before_install: npm install -g grunt-cli

65 changes: 29 additions & 36 deletions Gruntfile.js
@@ -1,42 +1,35 @@
'use strict';
"use strict";

module.exports = function(grunt) {
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: ["Gruntfile.js", "lib/*.js", "<%= nodeunit.tests %>"],
options: {
jshintrc: ".jshintrc",
},
},

// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'lib/*.js',
'<%= nodeunit.tests %>',
],
options: {
jshintrc: '.jshintrc',
},
},
// Before generating any new files, remove any previously-created files.
clean: {
tests: ["tmp"],
},

// Before generating any new files, remove any previously-created files.
clean: {
tests: ['tmp'],
},
// Unit tests.
nodeunit: {
tests: ["test/*_test.js"],
},
});

// Unit tests.
nodeunit: {
tests: ['test/*_test.js'],
},

});
// These plugins provide necessary tasks.
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-nodeunit");

// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-nodeunit');

// Whenever the "test" task is run, first clean the "tmp" dir, then run this
// plugin's task(s), then test the result.
grunt.registerTask('test', ['clean', 'nodeunit']);
// Whenever the "test" task is run, first clean the "tmp" dir, then run this
// plugin's task(s), then test the result.
grunt.registerTask("test", ["clean", "nodeunit"]);

// By default, lint and run all tests.
grunt.registerTask('default', ['jshint', 'test']);

};
// By default, lint and run all tests.
grunt.registerTask("default", ["jshint", "test"]);
};

0 comments on commit e01be3e

Please sign in to comment.