Skip to content

Commit

Permalink
Test TS ExpectType in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 19, 2023
1 parent cc7b6bc commit 7de30f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,13 @@ module.exports = {
overrides: [{
files: ['**/*.ts'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['types/tsconfig.json'],
},
plugins: ['eslint-plugin-expect-type'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:expect-type/recommended',
],
rules: {
// https://typescript-eslint.io/rules/no-use-before-define#how-to-use
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install dependencies
run: yarn && yarn add -D eslint-config-airbnb-base@^15 eslint-plugin-unicorn@^46 eslint-plugin-jest@^26.9.0 @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript
run: yarn && yarn add -D typescript eslint-config-airbnb-base@^15 eslint-plugin-unicorn@^46 eslint-plugin-jest@^26.9.0 @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-expect-type
- name: Lint JS and LESS files
run: npm run lint
- name: Assert LESS files formatting using Prettier
Expand Down

0 comments on commit 7de30f2

Please sign in to comment.