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

Eslint parsing error #955

Open
alifhs opened this issue Oct 30, 2022 · 2 comments
Open

Eslint parsing error #955

alifhs opened this issue Oct 30, 2022 · 2 comments

Comments

@alifhs
Copy link

alifhs commented Oct 30, 2022

I'm facing "src\data-structures\queue\README.md
1:1 error Parsing error: Unexpected character '#' " error.
I'm on the windows platform and tried to ignore .md files adding
{
"eslintIgnore" : ["**/*.md"],
} propety to eslintIgnore file. am still facing the same issue. How to resolve this?

@Skilly55
Copy link

This error is indicating that the # symbol in your README.md file is causing a parsing error in your linter. To resolve this issue, you can try the following steps:

Check if you have the correct syntax in your .eslintrc.json file: Ensure that the property name is "eslintIgnore" and that the value is an array of file paths or glob patterns to ignore.

Try using a different glob pattern: Instead of using "**/.md", try using ".md" or a more specific pattern that matches your README.md file.

Check if the .eslintrc.json file is located in the correct directory: It should be located in the root directory of your project or in a parent directory.

Make sure that you have the latest version of ESLint installed: You can run the command npm install -g eslint to install or update ESLint.

If none of the above steps work, you can also try disabling the linter for the specific line that is causing the error or temporarily removing the line until you can resolve the issue.

@Pavan-Rajesh
Copy link

add this line in your .eslintrc
"ignorePatterns": [".md", ".png", ".jpeg", ".jpg"],

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

No branches or pull requests

3 participants