Skip to content

Commit e98e176

Browse files
authored
Merge pull request DSpace#5206 from DSpace/dependabot/npm_and_yarn/eslint-ada54cb37e
Bump the eslint group across 1 directory with 9 updates
2 parents ac0e058 + 00ee0c0 commit e98e176

12 files changed

+208
-165
lines changed

lint/src/rules/html/no-disabled-attribute-on-button.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ export const info = {
3838
} as DSpaceESLintRuleInfo;
3939

4040
export const rule = ESLintUtils.RuleCreator.withoutDocs({
41-
...info,
41+
meta: info.meta,
42+
defaultOptions: info.defaultOptions,
4243
create(context: TSESLint.RuleContext<Message, unknown[]>) {
4344
const parserServices = getSourceCode(context).parserServices as TemplateParserServices;
4445

lint/src/rules/html/themed-component-usages.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ The only exception to this rule are unit tests, where we may want to use the bas
5353
} as DSpaceESLintRuleInfo;
5454

5555
export const rule = ESLintUtils.RuleCreator.withoutDocs({
56-
...info,
56+
meta: info.meta,
57+
defaultOptions: info.defaultOptions,
5758
create(context: RuleContext<Message, unknown[]>): RuleListener {
5859
if (getFilename(context).includes('.spec.ts')) {
5960
// skip inline templates in unit tests

lint/src/rules/ts/alias-imports.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ export const info: DSpaceESLintRuleInfo<[AliasImportOptions], [AliasImportDocOpt
8888
};
8989

9090
export const rule = ESLintUtils.RuleCreator.withoutDocs({
91-
...info,
91+
meta: info.meta,
92+
defaultOptions: info.defaultOptions,
9293
create(context: TSESLint.RuleContext<Message, unknown[]>, options: any) {
9394
return (options[0] as AliasImportOptions).aliases.reduce((selectors: any, option: AliasImportOption) => {
9495
selectors[`ImportDeclaration[source.value = "${option.package}"] > ImportSpecifier[imported.name = "${option.imported}"][local.name != "${option.local}"]`] = (node: TSESTree.ImportSpecifier) => handleUnaliasedImport(context, option, node);

lint/src/rules/ts/no-default-standalone-value.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export const info: DSpaceESLintRuleInfo = {
3535
};
3636

3737
export const rule = ESLintUtils.RuleCreator.withoutDocs({
38-
...info,
38+
meta: info.meta,
39+
defaultOptions: info.defaultOptions,
3940
create(context: RuleContext<any, any>, options: any) {
4041
return {
4142
['ClassDeclaration > Decorator > CallExpression[callee.name="Component"] > ObjectExpression > Property[key.name="standalone"]']: (node: TSESTree.Property) => {

lint/src/rules/ts/sort-standalone-imports.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ export const info: DSpaceESLintRuleInfo<[UniqueDecoratorsOptions], [UniqueDecora
9797
};
9898

9999
export const rule = ESLintUtils.RuleCreator.withoutDocs({
100-
...info,
100+
meta: info.meta,
101+
defaultOptions: info.defaultOptions,
101102
create(context: TSESLint.RuleContext<Message, unknown[]>, [{ locale, maxItems, indent, trailingComma }]: any) {
102103
return {
103104
['ClassDeclaration > Decorator > CallExpression[callee.name="Component"] > ObjectExpression > Property[key.name="imports"] > ArrayExpression']: (node: TSESTree.ArrayExpression) => {

lint/src/rules/ts/themed-component-selectors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ Unit tests are exempt from this rule, because they may redefine components using
5858
} as DSpaceESLintRuleInfo;
5959

6060
export const rule = ESLintUtils.RuleCreator.withoutDocs({
61-
...info,
61+
meta: info.meta,
62+
defaultOptions: info.defaultOptions,
6263
create(context: RuleContext<Message, unknown[]>) {
6364
const filename = getFilename(context);
6465

lint/src/rules/ts/themed-component-usages.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ There are a few exceptions where the base class can still be used:
6868
} as DSpaceESLintRuleInfo;
6969

7070
export const rule = ESLintUtils.RuleCreator.withoutDocs({
71-
...info,
71+
meta: info.meta,
72+
defaultOptions: info.defaultOptions,
7273
create(context: RuleContext<Message, unknown[]>) {
7374
const filename = getFilename(context);
7475

lint/src/rules/ts/themed-decorators.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ export const info: DSpaceESLintRuleInfo<[ThemedDecoratorsOption], [ThemedDecorat
7171
};
7272

7373
export const rule = ESLintUtils.RuleCreator.withoutDocs({
74-
...info,
74+
meta: info.meta,
75+
defaultOptions: info.defaultOptions,
7576
create(context: TSESLint.RuleContext<Message, unknown[]>, options: any) {
7677
return {
7778
[`ClassDeclaration > Decorator > CallExpression[callee.name=/^(${Object.keys(options[0].decorators).join('|')})$/]`]: (node: TSESTree.CallExpression) => {

lint/src/rules/ts/themed-wrapper-no-input-defaults.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export const info: DSpaceESLintRuleInfo = {
3131
};
3232

3333
export const rule = ESLintUtils.RuleCreator.withoutDocs({
34-
...info,
34+
meta: info.meta,
35+
defaultOptions: info.defaultOptions,
3536
create(context: RuleContext<any, any>, options: any) {
3637
return {
3738
'ClassBody > PropertyDefinition > Decorator > CallExpression[callee.name=\'Input\']': (node: TSESTree.CallExpression) => {

lint/src/rules/ts/unique-decorators.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ export const info: DSpaceESLintRuleInfo<[UniqueDecoratorsOptions], [UniqueDecora
7777
};
7878

7979
export const rule = ESLintUtils.RuleCreator.withoutDocs({
80-
...info,
80+
meta: info.meta,
81+
defaultOptions: info.defaultOptions,
8182
create(context: TSESLint.RuleContext<Message, unknown[]>, options: any) {
8283

8384
return {

0 commit comments

Comments
 (0)