Skip to content

Commit

Permalink
Using previously unused variables.
Browse files Browse the repository at this point in the history
* Added tests for the utility types
* Changed unnecessary anys into unknowns
  • Loading branch information
iwoplaza committed Jul 1, 2024
1 parent dcf50eb commit 895c92c
Show file tree
Hide file tree
Showing 11 changed files with 3,071 additions and 7,073 deletions.
20 changes: 0 additions & 20 deletions .eslintrc.js

This file was deleted.

12 changes: 12 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
ignores: ['dist'],
},
);
2 changes: 2 additions & 0 deletions examples/dog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ const dog: Dog = {
age: 123,
name: 'Spikey',
};

console.log(dog);
2 changes: 2 additions & 0 deletions examples/inferredShowcase/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ const dog: Dog = {
name: 'Sammy',
age: 15,
};

console.log(dog);
Loading

0 comments on commit 895c92c

Please sign in to comment.