Skip to content

Commit 8bfd3a1

Browse files
authored
Merge pull request #958 from Cyberbeni/eslint-cleanup
Extend @typescript-eslint/recommended-type-checked instead of eslint-recommended and recommended
2 parents 520dcc1 + 1cf58a3 commit 8bfd3a1

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

.github/linters/.eslintrc.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ plugins:
2929

3030
extends:
3131
- eslint:recommended
32-
- plugin:@typescript-eslint/eslint-recommended
33-
- plugin:@typescript-eslint/recommended
32+
- plugin:@typescript-eslint/recommended-type-checked
3433
- plugin:jest/recommended
3534

3635
rules:
@@ -41,29 +40,18 @@ rules:
4140
'i18n-text/no-en': 'off',
4241
'import/no-namespace': 'off',
4342
'no-console': 'off',
44-
'no-unused-vars': 'off',
4543
'semi': 'off',
4644
'@typescript-eslint/array-type': 'error',
47-
'@typescript-eslint/await-thenable': 'error',
48-
'@typescript-eslint/ban-ts-comment': 'error',
4945
'@typescript-eslint/consistent-type-assertions': 'error',
5046
'@typescript-eslint/explicit-member-accessibility':
5147
['error', { 'accessibility': 'no-public' }],
5248
'@typescript-eslint/explicit-function-return-type':
5349
['error', { 'allowExpressions': true }],
54-
'@typescript-eslint/no-array-constructor': 'error',
5550
'@typescript-eslint/no-empty-interface': 'error',
56-
'@typescript-eslint/no-explicit-any': 'error',
5751
'@typescript-eslint/no-extraneous-class': 'error',
58-
'@typescript-eslint/no-for-in-array': 'error',
5952
'@typescript-eslint/no-inferrable-types': 'error',
60-
'@typescript-eslint/no-misused-new': 'error',
61-
'@typescript-eslint/no-namespace': 'error',
6253
'@typescript-eslint/no-non-null-assertion': 'warn',
63-
'@typescript-eslint/no-require-imports': 'error',
6454
'@typescript-eslint/no-unnecessary-qualifier': 'error',
65-
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
66-
'@typescript-eslint/no-unused-vars': 'error',
6755
'@typescript-eslint/no-useless-constructor': 'error',
6856
'@typescript-eslint/no-var-requires': 'error',
6957
'@typescript-eslint/prefer-for-of': 'warn',
@@ -72,7 +60,5 @@ rules:
7260
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
7361
'@typescript-eslint/promise-function-async': 'error',
7462
'@typescript-eslint/require-array-sort-compare': 'error',
75-
'@typescript-eslint/restrict-plus-operands': 'error',
76-
'@typescript-eslint/space-before-function-paren': 'off',
77-
'@typescript-eslint/unbound-method': 'error'
63+
'@typescript-eslint/space-before-function-paren': 'off'
7864
}

__tests__/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as main from '../src/main'
88
const runMock = jest.spyOn(main, 'run').mockImplementation()
99

1010
describe('index', () => {
11-
it('calls run when imported', async () => {
11+
it('calls run when imported', () => {
1212
// eslint-disable-next-line @typescript-eslint/no-require-imports
1313
require('../src/index')
1414

0 commit comments

Comments
 (0)