Skip to content

Commit

Permalink
ci: Replace dtslint with eslint (#2453)
Browse files Browse the repository at this point in the history
  • Loading branch information
dplewis authored Feb 17, 2025
1 parent 656e737 commit fcc1010
Show file tree
Hide file tree
Showing 7 changed files with 1,364 additions and 4,303 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ jobs:
- run: npm ci
- name: Build Types
run: npm run build:types
- name: Lint Types
run: npm run lint:types
- name: Test Types
run: npm run test:types
run: npm run test:types 2>&1 | tee silent.txt;
check-docs:
name: Check Docs
timeout-minutes: 10
Expand Down
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,3 @@ module.exports = tseslint.config({
},
},
});

34 changes: 34 additions & 0 deletions eslint.config.test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import expectType from 'eslint-plugin-expect-type/configs/recommended';

export default tseslint.config({
files: ['**/*.js', '**/*.ts'],
extends: [
expectType,
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
],
plugins: {
'@typescript-eslint': tseslint.plugin,
},
rules: {
'no-empty': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
},
languageOptions: {
parser: tseslint.parser,
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
});
Loading

0 comments on commit fcc1010

Please sign in to comment.