Skip to content

Commit fcc1010

Browse files
authored
ci: Replace dtslint with eslint (#2453)
1 parent 656e737 commit fcc1010

File tree

7 files changed

+1364
-4303
lines changed

7 files changed

+1364
-4303
lines changed

.github/workflows/ci.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ jobs:
2929
- run: npm ci
3030
- name: Build Types
3131
run: npm run build:types
32-
- name: Lint Types
33-
run: npm run lint:types
3432
- name: Test Types
35-
run: npm run test:types
33+
run: npm run test:types 2>&1 | tee silent.txt;
3634
check-docs:
3735
name: Check Docs
3836
timeout-minutes: 10

eslint.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,3 @@ module.exports = tseslint.config({
8888
},
8989
},
9090
});
91-

eslint.config.test.mjs

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import expectType from 'eslint-plugin-expect-type/configs/recommended';
4+
5+
export default tseslint.config({
6+
files: ['**/*.js', '**/*.ts'],
7+
extends: [
8+
expectType,
9+
eslint.configs.recommended,
10+
...tseslint.configs.recommended,
11+
...tseslint.configs.recommendedTypeChecked,
12+
],
13+
plugins: {
14+
'@typescript-eslint': tseslint.plugin,
15+
},
16+
rules: {
17+
'no-empty': 'off',
18+
'@typescript-eslint/no-unused-vars': 'off',
19+
'@typescript-eslint/no-unused-expressions': 'off',
20+
'@typescript-eslint/no-empty-object-type': 'off',
21+
'@typescript-eslint/ban-ts-comment': 'off',
22+
'@typescript-eslint/no-unsafe-call': 'off',
23+
'@typescript-eslint/no-unsafe-member-access': 'off',
24+
'@typescript-eslint/no-unsafe-argument': 'off',
25+
'@typescript-eslint/no-unsafe-assignment': 'off',
26+
},
27+
languageOptions: {
28+
parser: tseslint.parser,
29+
parserOptions: {
30+
projectService: true,
31+
tsconfigRootDir: import.meta.dirname,
32+
},
33+
},
34+
});

0 commit comments

Comments
 (0)