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

Installation instructions for .eslintrc should escape backslashes #888

Closed
psytrx opened this issue Mar 11, 2024 · 0 comments
Closed

Installation instructions for .eslintrc should escape backslashes #888

psytrx opened this issue Mar 11, 2024 · 0 comments
Labels
type: documentation A change or addition to the documentation

Comments

@psytrx
Copy link

psytrx commented Mar 11, 2024

Change Type

Correction

Proposed Changes

Copy-pasting the .eslintrc from the docs leads to parsing errors via eslint/js-yaml.

YAMLException: Cannot read config file: ./src/lib/components/ui/.eslintrc
Error: unknown escape sequence (7:33)

 4 |       "warn",
 5 |       {
 6 |         "argsIgnorePattern": "^_",
 7 |         "varsIgnorePattern": "^\$\$(Props|Events|Slots|Generic)$"
-------------------------------------^
 8 |       }
 9 |     ]

They seem to be escaped in the markdown sources already. The straightforward solution would be double-escaping them here, but I didn't yet verify if that works.

@psytrx psytrx added the type: documentation A change or addition to the documentation label Mar 11, 2024
@huntabyte huntabyte closed this as not planned Won't fix, can't repro, duplicate, stale Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A change or addition to the documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants