sindresorhus / strip-bom

Strip UTF-8 byte order mark (BOM) from a string

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

transpile source to es5?

opened this issue · comments

Hey. I'm developing a project that need to work for nodeJS 0.12. And I'm using latest ESLint version. This version of ESLint uses your script, but on nodeJS 0.12, it throws this:

eslint/node_modules/strip-bom/index.js:2
module.exports = x => {
                   ^^

Older versions of ESLint works fine, but not version 3.x.

Any possibility to convert to ES5 ?

Install version 2.0.0 and you are good to go.

@SamVerschueren Well. ESLint are using v. 3.0.0.
Just to check this I installed the same version locale, and index.js is still ES6, not ES5.

But NP I can open an issue ticket and ask ESLint to switch out that package.