Migrate to ESLint 9 (#10762)
* update ESLint related packages * migrate to flat config format * Fix prefer-const error Fixes 'overrideLogoSize' is never reassigned. Use 'const' instead * remove irrelevant eslint-disable comment These comments came from a swizzled upstream component but never did anything in our codebase. ESLint 9 does not allow disable comments for rules that are not registered. * remove irrelevant eslint-disable comments These were here because in the past we were applying mocha lint rules to files which contained no tests ESLint 9 now flags eslint-disable comments that aren't doing anythings * remove irrelevant eslint-disable comment ESLint 9 now flags eslint-disable comments that aren't doing anything * there are no .tsx files in our code any more * include .mjs files in linting and formatting * update sort-class-members rule for openApi property and update the handful of files violating it
This commit is contained in:
@@ -9,14 +9,6 @@ const description = `<p>This badge indicates whether the package supports the <b
|
||||
export default class NodeCurrentVersion extends NodeVersionBase {
|
||||
static route = this.buildRoute('node/v', { withTag: true })
|
||||
|
||||
static defaultBadgeData = {
|
||||
label: 'node',
|
||||
}
|
||||
|
||||
static type = 'current'
|
||||
|
||||
static colorResolver = versionColorForRangeCurrent
|
||||
|
||||
static openApi = {
|
||||
'/node/v/{packageName}': {
|
||||
get: {
|
||||
@@ -57,4 +49,12 @@ export default class NodeCurrentVersion extends NodeVersionBase {
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
static defaultBadgeData = {
|
||||
label: 'node',
|
||||
}
|
||||
|
||||
static type = 'current'
|
||||
|
||||
static colorResolver = versionColorForRangeCurrent
|
||||
}
|
||||
|
||||
@@ -9,14 +9,6 @@ const description = `<p>This badge indicates whether the package supports <b>all
|
||||
export default class NodeLtsVersion extends NodeVersionBase {
|
||||
static route = this.buildRoute('node/v-lts', { withTag: true })
|
||||
|
||||
static defaultBadgeData = {
|
||||
label: 'node-lts',
|
||||
}
|
||||
|
||||
static type = 'lts'
|
||||
|
||||
static colorResolver = versionColorForRangeLts
|
||||
|
||||
static openApi = {
|
||||
'/node/v-lts/{packageName}': {
|
||||
get: {
|
||||
@@ -57,4 +49,12 @@ export default class NodeLtsVersion extends NodeVersionBase {
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
static defaultBadgeData = {
|
||||
label: 'node-lts',
|
||||
}
|
||||
|
||||
static type = 'lts'
|
||||
|
||||
static colorResolver = versionColorForRangeLts
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user