-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Unknown option "cliOptions" + cache #27
Comments
What’s your full jest config? |
An example here : const path = require('path');
const rootDir = path.join(__dirname, '../../');
module.exports = {
runner: 'jest-runner-eslint',
rootDir: `${rootDir}`,
displayName: 'lint',
testMatch: ['<rootDir>/src/**/*.js'],
cliOptions: {
cacheLocation: '.eslintcache',
},
}; |
Try putting this in your package.json "jest-runner-eslint": {
"cliOptions": {
"cacheLocation": ".eslintcache"
}
} |
@rogeliog I have no error but no |
It's not pointed out clearly in the docs that there are two configuration files. The two config files:
The second one would take the However I couldn't get it to work with custom ESLint rules either :/ |
This is the current setup in a
The config seems to end up in ESLint correctly and is parsed nicely.
However, the runner does not report a failing lint run whenever any of the rules does not match. Any ideas where things go wrong? |
This seems to be something with the normalization of CLI options maybe. I checked what the rule:
{ 'import/no-unresolved': 2,
'prettier/prettier': [ 'error', [Object] ] }, when running it with rules:
[ 'import/no-unresolved: 2',
'prettier/prettier: ["error", {"trailingComma": "es5", "singleQuote": true}]'
], |
Hi !
When I use the
cliOptions
params, I get this error :jest@22.1.2
jest-runner-eslint@0.4.0-0
On the other hand, cache doesn't seems to work :
.eslintcache
file is created,Thanks for your help !
The text was updated successfully, but these errors were encountered: