standard/eslint-config-standard-react

"TypeError: path.charAt is not a function"

cesarandreu opened this issue · 4 comments

Since eslint/eslint#2711 isn't in a tagged release yet, if your .eslintrc file has:

{
  "extends": ["standard", "standard-react"]
}

It'll throw TypeError: path.charAt is not a function.

It looks like standard is using a hardcoded eslint: https://github.com/feross/standard/blob/22e640da289a6d30e631bacbd85037ba33d776de/package.json

For people that wanna use this on its own, you'll need to install the hard-coded version of eslint until there's a new tagged release.

Maybe it's a good idea to add a temporary note to the README?

For anyone that might have this same issue, in the meantime it can be solved by using:

{
  "eslint": "git://github.com/eslint/eslint.git#fff52aecaf1d073952201b3f128e6664f529a24e"
}

@cesarandreu Yeah, feel free to add a note to the readme! Good idea!

eslint 0.23.0 is now released so this is no longer an issue! 👍