-
Notifications
You must be signed in to change notification settings - Fork 3
Error: ENOENT: no such file or directory, scandir './rules' #106
Comments
@ntwb I figured out the issue. The issue is that the version on NPM has not been updated. https://www.npmjs.com/package/eslint-plugin-wordpress I ended up installing it via |
If I understand this correctly Would that mean the Readme file should be updated to recommend people to use |
Yes, you should really only use
Probably, yes :) |
I also just checked that the proposal for _s in Automattic/_s#1159 uses |
@ntwb Thanks, I did start looking at that but I got confused by the two repos as Are there different rulesets that we can use or does the WordPress ruleset include everything? For example Or |
These are the updates that are coming in the next releases... Up until (and currently including now) See also WordPress-Coding-Standards/eslint-config-wordpress#8 |
@feryardiant Unless you have got a specific requirement to use this package, you should use https://github.com/WordPress-Coding-Standards/eslint-config-wordpress instead of this package here. |
What's that mean? Is that mean you wanna say that "We don't have plan to publish latest version on npm for some reason" ?? Actually actually it's my first time trying to use all wordpress coding standards instead of just It's ask me to write (function( document ) {
// some codes
}( document )); instead of (function( document ) {
// some codes
})( document ); Note: I'm not going to linting full project just yet. Anyway, could you please explain further about the "specific requirement" means? |
Sure, @feryardiant, This is why I recommended using |
I see, thanks for the explanation @ntwb. Sure thing, will do. |
Package.json
When I run the
eslint js/**
on_s
I get the following error.Similar issue eslint/generator-eslint#20
The text was updated successfully, but these errors were encountered: