You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
But when we do this it fails with "Unsupported rule: ourRule":
cd /project/src
jscs path/something.js
If I change the config to "additionalRules": ["../projectRules/*.js"], it works again, so it seems to be an issue that the files specified in the config resolve with the cwd and not the path of the config file.
When going back to 1.7.x it works in both cases.
This also breaks it from being used in WebStorm/PHPStorm, as the IDE seems to call them always with the cwd set to the path of the file being checked.
The text was updated successfully, but these errors were encountered:
We have the problem, that since we updated to version 1.8 of jscs, our additional rules can not be found. Let me show an example.
We have this config in the root path of our project /project/.jscsrc:
Now when we do this everything works:
cd /project/ jscs src/path/something.js
But when we do this it fails with "Unsupported rule: ourRule":
cd /project/src jscs path/something.js
If I change the config to
"additionalRules": ["../projectRules/*.js"],
it works again, so it seems to be an issue that the files specified in the config resolve with the cwd and not the path of the config file.When going back to 1.7.x it works in both cases.
This also breaks it from being used in WebStorm/PHPStorm, as the IDE seems to call them always with the cwd set to the path of the file being checked.
The text was updated successfully, but these errors were encountered: