Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to replace eslint-plugin-json with eslint-plugin-jsonc #565

Open
1 task
EvgenyOrekhov opened this issue Jun 30, 2022 · 1 comment
Open
1 task

Try to replace eslint-plugin-json with eslint-plugin-jsonc #565

EvgenyOrekhov opened this issue Jun 30, 2022 · 1 comment

Comments

@EvgenyOrekhov
Copy link
Owner

EvgenyOrekhov commented Jun 30, 2022

https://github.com/ota-meshi/eslint-plugin-jsonc

  • Ignore sorting in package.json and package-lock.json
@EvgenyOrekhov
Copy link
Owner Author

Can't make it work well, getting the following errors:

Error while parsing eslint-config-hardcore/esm/test-jsx.jsx
Line 6, column 1: Unexpected token 'export'.
`parseForESLint` from parser `eslint-config-hardcore/node_modules/jsonc-eslint-parser/lib/index.js` is invalid and will just be ignored

Error while parsing eslint-config-hardcore/sort-class-members.test.js
Line 14, column 1: Unexpected token 'export'.
`parseForESLint` from parser `eslint-config-hardcore/node_modules/jsonc-eslint-parser/lib/index.js` is invalid and will just be ignored

Error while parsing eslint-config-hardcore/test.stories.js
Line 8, column 1: Unexpected token 'export'.
`parseForESLint` from parser `eslint-config-hardcore/node_modules/jsonc-eslint-parser/lib/index.js` is invalid and will just be ignored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant