eslint-parser-plain icon indicating copy to clipboard operation
eslint-parser-plain copied to clipboard

feat: export parser meta

Open auvred opened this issue 6 months ago • 1 comments

I tried to run eslint --print-config and it threw the following:

❯ pnpm eslint --print-config package.json

Oops! Something went wrong! :(

ESLint: 8.56.0

Error: Could not serialize parser object (missing 'meta' object).
    at Object.value (/new-eslint-config/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/config/flat-config-array.js:239:27)
    at JSON.stringify (<anonymous>)
    at Object.execute (/new-eslint-config/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/cli.js:384:27)
    at async main (/new-eslint-config/node_modules/.pnpm/[email protected]/node_modules/eslint/bin/eslint.js:152:22)

I guess it would be nice to export meta, as ESLint suggests :) https://eslint.org/docs/latest/extend/custom-parsers#meta-data-in-custom-parsers

auvred avatar Dec 25 '23 09:12 auvred