-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
chore(storage): enable eslint and remove tslint #13004
Conversation
.eslintrc.js
Outdated
@@ -55,7 +55,7 @@ module.exports = { | |||
'react-native', | |||
'rtn-push-notification', | |||
'rtn-web-browser', | |||
'storage', | |||
// 'storage', |
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.
Why not just delete this?
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.
Meant to delete everything et the end to avoid merge conflicts (if it really helped...)
// TODO(eslint): remove this linter suppression. | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment |
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.
Do we want to address this in this PR?
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 had the same question when this code is introduced...
There is no solution here as we can mutating the typescript thought "readonly" property. We can use as any
here to remove the lint error though...
import { parseXmlError } from './utils'; | ||
|
||
const DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; | ||
const DOMAIN_PATTERN = /^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/; |
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.
Isn't this a logic change from specifically a period to any character?
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.
Note that the .
special char is in the character class []
.
Inside a character class, the dot loses its special meaning and matches a literal dot.
So it matches the dot .
specifically, not any single char, i.e. the escape slash is redundant (and \
cannot appear in a domain, so it's not the case trying to match a \
char either)
return; | ||
} | ||
// TODO(eslint): remove this linter suppression. |
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.
Ditto
97bf5b4
to
6a92a05
Compare
6a92a05
to
13abd6e
Compare
7e72858
to
2e9c5d7
Compare
c3626a8
to
99bca3d
Compare
Description of changes
See each commit message for details of changes.
Issue #, if available
Description of how you validated changes
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.