Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 52eb431

Browse filesBrowse files
committed
feat(eslint): migrate to @typescript-eslint/* v6
BREAKING CHANGE: Minimum `@typescript-eslint/parser` dependency version is now set to `^6.10.0`
1 parent 9ffe8c1 commit 52eb431
Copy full SHA for 52eb431

28 files changed

+31
-27
lines changed

‎libs/eslint-plugin/package.json

Copy file name to clipboardExpand all lines: libs/eslint-plugin/package.json
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "1.0.0",
44
"peerDependencies": {
55
"eslint": ">=8.0.0",
6-
"typescript": ">=4.3.5"
6+
"typescript": ">=4.3.5",
7+
"@typescript-eslint/parser": "^6.10.0"
8+
},
9+
"dependencies": {
10+
"@typescript-eslint/utils": "^6.10.0"
711
}
812
}

‎libs/eslint-plugin/src/lib/rules/no-explicit-change-detection-apis.spec.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-explicit-change-detection-apis.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path';
33
import rule, { MessageIds } from './no-explicit-change-detection-apis';
44

55
const ruleTester = new TSESLint.RuleTester({
6-
parser: path.resolve('./node_modules/@typescript-eslint/parser'),
6+
parser: require.resolve('@typescript-eslint/parser'),
77
});
88

99
const valid: TSESLint.RunTests<MessageIds, never[]>['valid'] = [

‎libs/eslint-plugin/src/lib/rules/no-explicit-change-detection-apis.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-explicit-change-detection-apis.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default ESLintUtils.RuleCreator(docsUrl)({
3434
name: 'no-explicit-change-detection-apis',
3535
meta: {
3636
docs: {
37-
recommended: 'error',
37+
recommended: 'recommended',
3838
description: 'Disallow explicit calls of change detection APIs.',
3939
},
4040
type: 'problem',

‎libs/eslint-plugin/src/lib/rules/no-rxstate-imperative-in-reactive.spec.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-rxstate-imperative-in-reactive.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path';
33
import rule, { MessageIds } from './no-rxstate-imperative-in-reactive';
44

55
const ruleTester = new TSESLint.RuleTester({
6-
parser: path.resolve('./node_modules/@typescript-eslint/parser'),
6+
parser: require.resolve('@typescript-eslint/parser'),
77
});
88

99
const valid: TSESLint.RunTests<MessageIds, never[]>['valid'] = [

‎libs/eslint-plugin/src/lib/rules/no-rxstate-imperative-in-reactive.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-rxstate-imperative-in-reactive.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default ESLintUtils.RuleCreator(docsUrl)({
1010
name: path.parse(__filename).name,
1111
meta: {
1212
docs: {
13-
recommended: 'error',
13+
recommended: 'recommended',
1414
description:
1515
'Warns against mixing imperative RxState methods in reactive methods.',
1616
},

‎libs/eslint-plugin/src/lib/rules/no-rxstate-subscriptions-outside-constructor.spec.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-rxstate-subscriptions-outside-constructor.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import rule, {
66
} from './no-rxstate-subscriptions-outside-constructor';
77

88
const ruleTester = new TSESLint.RuleTester({
9-
parser: path.resolve('./node_modules/@typescript-eslint/parser'),
9+
parser: require.resolve('@typescript-eslint/parser'),
1010
});
1111

1212
const valid: TSESLint.RunTests<MessageIds, Options>['valid'] = [

‎libs/eslint-plugin/src/lib/rules/no-rxstate-subscriptions-outside-constructor.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-rxstate-subscriptions-outside-constructor.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default ESLintUtils.RuleCreator(docsUrl)({
2121
name: path.parse(__filename).name,
2222
meta: {
2323
docs: {
24-
recommended: 'error',
24+
recommended: 'recommended',
2525
description:
2626
'Warns against using RxState subscription methods outside constructor.',
2727
},

‎libs/eslint-plugin/src/lib/rules/no-zone-critical-browser-apis.spec.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-zone-critical-browser-apis.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path';
33
import rule, { MessageIds } from './no-zone-critical-browser-apis';
44

55
const ruleTester = new TSESLint.RuleTester({
6-
parser: path.resolve('./node_modules/@typescript-eslint/parser'),
6+
parser: require.resolve('@typescript-eslint/parser'),
77
});
88

99
const valid: TSESLint.RunTests<MessageIds, never[]>['valid'] = [

‎libs/eslint-plugin/src/lib/rules/no-zone-critical-browser-apis.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-zone-critical-browser-apis.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default ESLintUtils.RuleCreator(docsUrl)({
3030
name: path.parse(__filename).name,
3131
meta: {
3232
docs: {
33-
recommended: 'error',
33+
recommended: 'recommended',
3434
description:
3535
'Detects all scheduling APIs (setTimeout, setInterval, requestAnimationFrame).',
3636
},

‎libs/eslint-plugin/src/lib/rules/no-zone-critical-lodash-apis.spec.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-zone-critical-lodash-apis.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path';
33
import rule, { MessageIds } from './no-zone-critical-lodash-apis';
44

55
const ruleTester = new TSESLint.RuleTester({
6-
parser: path.resolve('./node_modules/@typescript-eslint/parser'),
6+
parser: require.resolve('@typescript-eslint/parser'),
77
});
88

99
const valid: TSESLint.RunTests<MessageIds, never[]>['valid'] = [

‎libs/eslint-plugin/src/lib/rules/no-zone-critical-lodash-apis.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-zone-critical-lodash-apis.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default ESLintUtils.RuleCreator(docsUrl)({
2323
name: path.parse(__filename).name,
2424
meta: {
2525
docs: {
26-
recommended: 'error',
26+
recommended: 'recommended',
2727
description: 'Detects Zone related Lodash APIs.',
2828
},
2929
type: 'problem',

‎libs/eslint-plugin/src/lib/rules/no-zone-critical-rxjs-creation-apis.spec.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-zone-critical-rxjs-creation-apis.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path';
33
import rule, { MessageIds } from './no-zone-critical-rxjs-creation-apis';
44

55
const ruleTester = new TSESLint.RuleTester({
6-
parser: path.resolve('./node_modules/@typescript-eslint/parser'),
6+
parser: require.resolve('@typescript-eslint/parser'),
77
});
88

99
const valid: TSESLint.RunTests<MessageIds, never[]>['valid'] = [

‎libs/eslint-plugin/src/lib/rules/no-zone-critical-rxjs-creation-apis.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-zone-critical-rxjs-creation-apis.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default ESLintUtils.RuleCreator(docsUrl)({
1717
name: path.parse(__filename).name,
1818
meta: {
1919
docs: {
20-
recommended: 'error',
20+
recommended: 'recommended',
2121
description: 'Detects Zone critical rxjs creation APIs.',
2222
},
2323
type: 'problem',

‎libs/eslint-plugin/src/lib/rules/no-zone-critical-rxjs-operators.spec.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-zone-critical-rxjs-operators.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path';
33
import rule, { MessageIds } from './no-zone-critical-rxjs-operators';
44

55
const ruleTester = new TSESLint.RuleTester({
6-
parser: path.resolve('./node_modules/@typescript-eslint/parser'),
6+
parser: require.resolve('@typescript-eslint/parser'),
77
});
88

99
const valid: TSESLint.RunTests<MessageIds, never[]>['valid'] = [

‎libs/eslint-plugin/src/lib/rules/no-zone-critical-rxjs-operators.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-zone-critical-rxjs-operators.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default ESLintUtils.RuleCreator(docsUrl)({
2828
name: path.parse(__filename).name,
2929
meta: {
3030
docs: {
31-
recommended: 'error',
31+
recommended: 'recommended',
3232
description: 'Detects Zone critical RxJS operators.',
3333
},
3434
type: 'problem',

‎libs/eslint-plugin/src/lib/rules/no-zone-critical-rxjs-schedulers.spec.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-zone-critical-rxjs-schedulers.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path';
33
import rule, { MessageIds } from './no-zone-critical-rxjs-schedulers';
44

55
const ruleTester = new TSESLint.RuleTester({
6-
parser: path.resolve('./node_modules/@typescript-eslint/parser'),
6+
parser: require.resolve('@typescript-eslint/parser'),
77
});
88

99
const valid: TSESLint.RunTests<MessageIds, never[]>['valid'] = [

‎libs/eslint-plugin/src/lib/rules/no-zone-critical-rxjs-schedulers.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-zone-critical-rxjs-schedulers.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default ESLintUtils.RuleCreator(docsUrl)({
1919
name: path.parse(__filename).name,
2020
meta: {
2121
docs: {
22-
recommended: 'error',
22+
recommended: 'recommended',
2323
description: 'Detects all RxJS schedulers.',
2424
},
2525
type: 'problem',

‎libs/eslint-plugin/src/lib/rules/no-zone-run-apis.spec.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-zone-run-apis.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path';
33
import rule, { MessageIds } from './no-zone-run-apis';
44

55
const ruleTester = new TSESLint.RuleTester({
6-
parser: path.resolve('./node_modules/@typescript-eslint/parser'),
6+
parser: require.resolve('@typescript-eslint/parser'),
77
});
88

99
const valid: TSESLint.RunTests<MessageIds, never[]>['valid'] = ['run();'];

‎libs/eslint-plugin/src/lib/rules/no-zone-run-apis.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/no-zone-run-apis.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default ESLintUtils.RuleCreator(docsUrl)({
2525
name: path.parse(__filename).name,
2626
meta: {
2727
docs: {
28-
recommended: 'error',
28+
recommended: 'recommended',
2929
description: 'Detects zone.run APIs.',
3030
},
3131
type: 'problem',

‎libs/eslint-plugin/src/lib/rules/prefer-no-layout-sensitive-apis.spec.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/prefer-no-layout-sensitive-apis.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path';
33
import rule, { MessageIds } from './prefer-no-layout-sensitive-apis';
44

55
const ruleTester = new TSESLint.RuleTester({
6-
parser: path.resolve('./node_modules/@typescript-eslint/parser'),
6+
parser: require.resolve('@typescript-eslint/parser'),
77
});
88

99
const valid: TSESLint.RunTests<MessageIds, never[]>['valid'] = [

‎libs/eslint-plugin/src/lib/rules/prefer-no-layout-sensitive-apis.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/prefer-no-layout-sensitive-apis.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default ESLintUtils.RuleCreator(docsUrl)({
6767
name: path.parse(__filename).name,
6868
meta: {
6969
docs: {
70-
recommended: 'error',
70+
recommended: 'recommended',
7171
description:
7272
'Detects all layout sensitive apis that may cause style recalculation.',
7373
},

‎libs/eslint-plugin/src/lib/rules/prefer-no-lodash-clone-deep.spec.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/prefer-no-lodash-clone-deep.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path';
33
import rule, { MessageIds } from './prefer-no-lodash-clone-deep';
44

55
const ruleTester = new TSESLint.RuleTester({
6-
parser: path.resolve('./node_modules/@typescript-eslint/parser'),
6+
parser: require.resolve('@typescript-eslint/parser'),
77
});
88

99
const valid: TSESLint.RunTests<MessageIds, never[]>['valid'] = [

‎libs/eslint-plugin/src/lib/rules/prefer-no-lodash-clone-deep.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/prefer-no-lodash-clone-deep.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default ESLintUtils.RuleCreator(docsUrl)({
99
name: path.parse(__filename).name,
1010
meta: {
1111
docs: {
12-
recommended: 'error',
12+
recommended: 'recommended',
1313
description: 'Detects all usages of cloneDeep from Lodash.',
1414
},
1515
type: 'problem',

‎libs/eslint-plugin/src/lib/rules/prefer-no-lodash-is-equal.spec.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/prefer-no-lodash-is-equal.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path';
33
import rule, { MessageIds } from './prefer-no-lodash-is-equal';
44

55
const ruleTester = new TSESLint.RuleTester({
6-
parser: path.resolve('./node_modules/@typescript-eslint/parser'),
6+
parser: require.resolve('@typescript-eslint/parser'),
77
});
88

99
const valid: TSESLint.RunTests<MessageIds, never[]>['valid'] = [

‎libs/eslint-plugin/src/lib/rules/prefer-no-lodash-is-equal.ts

Copy file name to clipboardExpand all lines: libs/eslint-plugin/src/lib/rules/prefer-no-lodash-is-equal.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default ESLintUtils.RuleCreator(docsUrl)({
99
name: path.parse(__filename).name,
1010
meta: {
1111
docs: {
12-
recommended: 'error',
12+
recommended: 'recommended',
1313
description: 'Detects all usages of isEqual from Lodash.',
1414
},
1515
type: 'problem',

‎libs/eslint-plugin/tsconfig.json

Copy file name to clipboardExpand all lines: libs/eslint-plugin/tsconfig.json
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
}
1212
],
1313
"compilerOptions": {
14+
"moduleResolution": "nodenext",
15+
"module": "nodenext",
1416
"forceConsistentCasingInFileNames": true,
1517
"strict": true,
1618
"noImplicitReturns": true,

‎libs/eslint-plugin/tsconfig.lib.json

Copy file name to clipboardExpand all lines: libs/eslint-plugin/tsconfig.lib.json
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"module": "commonjs",
54
"outDir": "../../dist/out-tsc",
65
"declaration": true,
76
"types": ["node"]

‎libs/eslint-plugin/tsconfig.spec.json

Copy file name to clipboardExpand all lines: libs/eslint-plugin/tsconfig.spec.json
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc",
5-
"module": "commonjs",
65
"types": ["jest", "node"]
76
},
87
"include": [

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.