-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: develop
Are you sure you want to change the base?
Conversation
var ttf2woff2 = require('ttf2woff2'); | ||
|
||
module.exports = function(source, target) { | ||
fs.writeFileSync(target, ttf2woff2(fs.readFileSync(source))); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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'); | ||
|
There was a problem hiding this comment.
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' + |
There was a problem hiding this comment.
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' + |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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
I’ve made some change in your fontfacegen package to work with Windows 10.