Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win compatibility #47

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Win compatibility #47

wants to merge 2 commits into from

Conversation

solymi
Copy link

@solymi solymi commented Feb 23, 2017

I’ve made some change in your fontfacegen package to work with Windows 10.

var ttf2woff2 = require('ttf2woff2');

module.exports = function(source, target) {
fs.writeFileSync(target, ttf2woff2(fs.readFileSync(source)));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 2 spaces but found 4 indent

var fs = require('fs');
var ttf2woff2 = require('ttf2woff2');

module.exports = function(source, target) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing function expression name func-names
Missing space before function parentheses space-before-function-paren

module.exports = (source, target) => {
fs.writeFileSync(target, ttf2woff2(fs.readFileSync(source)));
var fs = require('fs');
var ttf2woff2 = require('ttf2woff2');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected var, use let or const instead no-var
Unable to resolve path to module 'ttf2woff2' import/no-unresolved


module.exports = (source, target) => {
fs.writeFileSync(target, ttf2woff2(fs.readFileSync(source)));
var fs = require('fs');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected var, use let or const instead no-var

@@ -1,6 +1,8 @@
const fs = require('fs');
const ttf2woff2 = require('ttf2woff2');
'use strict';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'use strict' is unnecessary inside of modules strict

'From command: ' + command + '\n' +
trim(result) + '\n' +
'Your SVG file will probably not be in a working state');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing spaces not allowed no-trailing-spaces

throw new FontFaceException(
'ttf2svg command failed\n' +
'From command: ' + command + '\n' +
trim(result) + '\n' +

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'result' used outside of binding context block-scoped-var


} catch (e) {
throw new FontFaceException(
'ttf2svg command failed\n' +

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected string concatenation prefer-template



} catch (e) {
throw new FontFaceException(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 6 spaces but found 8 indent
'FontFaceException' is not defined no-undef

var result = execSync(command);


} catch (e) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Block must not be padded by blank lines padded-blocks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants