-
Notifications
You must be signed in to change notification settings - Fork 39
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
docs: fixed incorrect guide for setting up eslint to work with jessie #607
Conversation
|
||
```json | ||
"eslintConfig" : { | ||
"parserOptions": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After doing a final run through, I found that eslint complains about the code using an import statement outside of a module. Adding this parserOptions
property resolves this error.
```json | ||
{ | ||
"name": "eslint-config-test", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"type": "module", | ||
"devDependencies": { | ||
"@jessie.js/eslint-plugin": "^0.1.3", | ||
"eslint": "^8.6.0" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"@jessie.js" | ||
] | ||
"parserOptions": { "sourceType": "module", "ecmaVersion": 6 }, | ||
"extends": ["plugin:@jessie.js/recommended"] | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may seem like overkill but IMO seeing the entire contents of the file best ensures the reader avoids any issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good stuff. thanks a bunch!
Addresses #588