-
Notifications
You must be signed in to change notification settings - Fork 147
Add eslint and update code #2
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
Conversation
| "sourceType": "module" | ||
| }, | ||
| "plugins": ["@typescript-eslint", "jsdoc"], | ||
| "extends": ["plugin:@typescript-eslint/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.
Here's the list of the recommended rules we're extending from https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/src/configs/recommended.json
| }, | ||
| "plugins": ["@typescript-eslint", "jsdoc"], | ||
| "extends": ["plugin:@typescript-eslint/recommended"], | ||
| "rules": { |
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.
If you want to check specific rules you can get the docs for them on https://eslint.org/docs/rules/
src/i18n/i18n.ts
Outdated
| export const messages = { | ||
| md_request_fail: 'Metadata API request failed', | ||
| md_request_timeout: 'Metadata API request timed out' | ||
| mdRequestFail: 'Metadata API request failed', |
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.
Are we switching the convention from underscores to camelCasing for the messages? If it's switching can you update the other ones when you're resolving the conflicts?
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.
I'm thinking I'll get rid of that rule for now
| "@types/mocha": "^5", | ||
| "@types/node": "^10", | ||
| "@types/sinon": "^7.5.2", | ||
| "@types/sinon": "^7.5.2", |
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.
Small nitpick - formatting was off here for some reason
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.
Also think this has to be "^2.3.2"
Pulling changes from main
Add eslint configuration to the project.
@W-7302635@