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(eslint): upgrade eslint #15457
Conversation
Pretty massive. Apologies. Mostly unneeded / improper use of |
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.
some questions about side effects and a call to limit the scope of eslint exceptions
} | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: './tsconfig.test.json', |
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.
😬 sorry
@@ -50,7 +50,9 @@ export class Signin extends PureComponent<Props, State> { | |||
|
|||
if (this.hasMounted) { | |||
this.setState({loading: RemoteDataState.Done}) | |||
this.intervalID = setInterval(this.checkForLogin, FETCH_WAIT) | |||
this.intervalID = setInterval(() => { | |||
this.checkForLogin() |
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 is better!
@@ -1,6 +1,7 @@ | |||
// Libraries | |||
import React, {SFC} from 'react' | |||
|
|||
/* eslint-disable no-mixed-spaces-and-tabs */ |
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.
these should have a matching /* eslint-enable */
at the end of the file, in the name of compositional ease (changing include style, copy pasta, etc)
@@ -1,6 +1,7 @@ | |||
// Libraries | |||
import React, {SFC} from 'react' | |||
|
|||
/* eslint-disable no-mixed-spaces-and-tabs */ |
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.
needs a matching /* eslint-enable */
@@ -1,6 +1,7 @@ | |||
// Libraries | |||
import React, {SFC} from 'react' | |||
|
|||
/* eslint-disable no-mixed-spaces-and-tabs */ |
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.
needs a matching /* eslint-enable */
@@ -13,6 +13,7 @@ const setup = (override?) => { | |||
...override, | |||
} | |||
|
|||
// eslint-disable-next-line |
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.
is there a specific rule we can add here?
@@ -26,10 +26,10 @@ export function findIncludedsFromRelationships< | |||
export function findIncludedFromRelationship< | |||
T extends {id: string; type: TemplateType} | |||
>( | |||
includeds: {id: string; type: TemplateType}[], | |||
included: {id: string; type: TemplateType}[], |
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.
😲
@@ -1,3 +1,4 @@ | |||
/* eslint-disable */ |
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.
needs a matching /* eslint-enable */
constructor() { | ||
super(...arguments) | ||
constructor(...args) { | ||
super(...args) |
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.
👍
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.
...changing to comment in case i get busy.
watts promises to scope linting rules
496ee92
to
c64896d
Compare
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.
get on with it
"webpack.tsconfig.json" | ||
"webpack.tsconfig.json", | ||
"webpack.*.ts", | ||
"coverage" |
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.
👍
// but we cannot because of the default system buckets | ||
// since cypress selectors are so fast, that sometimes a bucket | ||
// that is deleted will be selected before it gets deleted | ||
cy.reload() |
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.
got it.
GOOD LUCK WITH YOUR MERGE CONFLICTS EVERYONE |
Upgraded ESLINT and updated linter errors
typescript-eslint/typescript-eslint#389