-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
With eslint 9+ i het this error using eslint-plugin-json with flat config
Oops! Something went wrong! :(
ESLint: 9.6.0
Error: Could not serialize processor object (missing 'meta' object).
at Object.value (C:\code\test_eslint_with_json\node_modules\eslint\lib\config\flat-config-array.js:390:27)
at stringify (C:\code\test_eslint_with_json\node_modules\json-stable-stringify-without-jsonify\index.js:25:25)
at module.exports (C:\code\test_eslint_with_json\node_modules\json-stable-stringify-without-jsonify\index.js:68:7)
at hashOfConfigFor (C:\code\test_eslint_with_json\node_modules\eslint\lib\cli-engine\lint-result-cache.js:50:75)
at LintResultCache.getCachedLintResults (C:\code\test_eslint_with_json\node_modules\eslint\lib\cli-engine\lint-result-cache.js:116:30)
at C:\code\test_eslint_with_json\node_modules\eslint\lib\eslint\eslint.js:903:41
at Array.map (<anonymous>)
at ESLint.lintFiles (C:\code\test_eslint_with_json\node_modules\eslint\lib\eslint\eslint.js:882:23)
at async Object.execute (C:\code\test_eslint_with_json\node_modules\eslint\lib\cli.js:521:23)
at async main (C:\code\test_eslint_with_json\node_modules\eslint\bin\eslint.js:153:22)eslint lib/config/flat-config-array.js expect processors to have meta object
https://eslint.org/docs/latest/extend/custom-processors
const processors = {
// Supports old config.
'.json': jsonProcessor,
// Supports new config.
json: jsonProcessor,
};Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels