Closed mhenke96 closed 1 year ago
Thanks for the catch. Since CRACO 7, ESLINT_MODES
does not exist, and the config property should be set to either 'extends'
or 'file'
(as a string, see the TS interface here). The documentation does not accurately reflect that so I'll fix that soon. Sorry!
To solve your issue, just set mode
to 'file'
.
I'll close this issue once the docs are updated.
The docs that still included references to ESLINT_MODES
have been updated!
What's happening I want to set a custom eslint file according to the receipt, but
@craco/craco
does not exportESLINT_MODES
.What should happen
@craco/craco
should exportESLINT_MODES
and therefore allow a custom eslint file.To reproduce Try to import
ESLINT_MODES
from@craco/craco
anywhere. It's clearly not exported in theindex.ts
. Furthermore, it just appears in the documentation when searching the entire repository: https://github.com/dilanx/craco/search?q=ESLINT_MODESCRACO version 7.0.0
CRACO config
package.json
Additional information None