Skip to content

Commit d787004

Browse files
committed
chore: update @typescript-eslint packages to version 8.39.1 and adjust ESLint rules
1 parent 76ae37c commit d787004

File tree

4 files changed

+210
-287
lines changed

4 files changed

+210
-287
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,3 @@ updates:
2626
- patch
2727
ignore:
2828
- dependency-name: 'eslint'
29-
- dependency-name: '@typescript-eslint/eslint-plugin'
30-
- dependency-name: '@typescript-eslint/parser'

.github/linters/.eslintrc.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ extends:
3535
- plugin:github/recommended
3636
- plugin:jest/recommended
3737

38-
rules:
39-
{
38+
rules: {
4039
'camelcase': 'off',
4140
'eslint-comments/no-use': 'off',
4241
'eslint-comments/no-unused-disable': 'off',
@@ -45,7 +44,7 @@ rules:
4544
'no-console': 'off',
4645
'no-unused-vars': 'off',
4746
'prettier/prettier': 'error',
48-
'semi': 'off',
47+
'semi': ['error', 'never'],
4948
'@typescript-eslint/array-type': 'error',
5049
'@typescript-eslint/await-thenable': 'error',
5150
'@typescript-eslint/ban-ts-comment': 'error',
@@ -54,7 +53,8 @@ rules:
5453
['error', { 'accessibility': 'no-public' }],
5554
'@typescript-eslint/explicit-function-return-type':
5655
['error', { 'allowExpressions': true }],
57-
'@typescript-eslint/func-call-spacing': ['error', 'never'],
56+
# Use ESLint's built-in rules for formatting instead of deprecated TS-ESLint rules
57+
'func-call-spacing': ['error', 'never'],
5858
'@typescript-eslint/no-array-constructor': 'error',
5959
'@typescript-eslint/no-empty-interface': 'error',
6060
'@typescript-eslint/no-explicit-any': 'error',
@@ -77,8 +77,30 @@ rules:
7777
'@typescript-eslint/promise-function-async': 'error',
7878
'@typescript-eslint/require-array-sort-compare': 'error',
7979
'@typescript-eslint/restrict-plus-operands': 'error',
80-
'@typescript-eslint/semi': ['error', 'never'],
8180
'@typescript-eslint/space-before-function-paren': 'off',
82-
'@typescript-eslint/type-annotation-spacing': 'error',
8381
'@typescript-eslint/unbound-method': 'error'
8482
}
83+
84+
overrides:
85+
- files: ['**/*.js']
86+
parser: 'espree'
87+
parserOptions:
88+
ecmaVersion: 2023
89+
sourceType: 'module'
90+
# Clear TypeScript project references for JavaScript files
91+
project: null
92+
rules:
93+
# Disable TypeScript-specific rules for JavaScript files
94+
'@typescript-eslint/explicit-function-return-type': 'off'
95+
'@typescript-eslint/no-explicit-any': 'off'
96+
'@typescript-eslint/explicit-member-accessibility': 'off'
97+
'@typescript-eslint/await-thenable': 'off'
98+
'@typescript-eslint/no-for-in-array': 'off'
99+
'@typescript-eslint/no-unnecessary-qualifier': 'off'
100+
'@typescript-eslint/no-unnecessary-type-assertion': 'off'
101+
'@typescript-eslint/prefer-includes': 'off'
102+
'@typescript-eslint/prefer-string-starts-ends-with': 'off'
103+
'@typescript-eslint/promise-function-async': 'off'
104+
'@typescript-eslint/require-array-sort-compare': 'off'
105+
'@typescript-eslint/restrict-plus-operands': 'off'
106+
'@typescript-eslint/unbound-method': 'off'

0 commit comments

Comments
 (0)