Skip to content

Commit 95d3842

Browse files
authored
chore(deps): update deps to latest, drop old beachball and eslint deps, add new eslint config file (#73)
1 parent 9c3138c commit 95d3842

14 files changed

+625
-1456
lines changed

.eslintrc.json

-23
This file was deleted.

CHANGELOG.json

-214
This file was deleted.

beachball.config.js

-5
This file was deleted.

eslint.config.js

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// @ts-check
2+
3+
import eslint from '@eslint/js';
4+
import tseslint from 'typescript-eslint';
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
...tseslint.configs.recommendedTypeChecked,
9+
...tseslint.configs.strictTypeChecked,
10+
...tseslint.configs.stylisticTypeChecked,
11+
{
12+
languageOptions: {
13+
parserOptions: {
14+
projectService: {
15+
allowDefaultProject: ['eslint.config.js'],
16+
},
17+
tsconfigRootDir: import.meta.dirname,
18+
},
19+
},
20+
},
21+
{
22+
files: ['**/*.ts'],
23+
},
24+
{
25+
ignores: ['src/generated'],
26+
},
27+
{
28+
rules: {
29+
'@typescript-eslint/switch-exhaustiveness-check': [
30+
'error',
31+
{
32+
considerDefaultExhaustiveForUnions: true,
33+
},
34+
],
35+
'@typescript-eslint/no-unused-vars': [
36+
'error',
37+
{
38+
varsIgnorePattern: '^_',
39+
argsIgnorePattern: '^_',
40+
},
41+
],
42+
},
43+
},
44+
);

jest.config.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import type { Config } from '@jest/types';
22

33
const config: Config.InitialOptions = {
4+
setupFiles: ['dotenv/config'],
45
transform: {
5-
'^.+\\.(t|j)s$': [
6-
'ts-jest',
7-
{
8-
isolatedModules: true,
9-
},
10-
],
6+
'^.+\\.ts$': 'ts-jest',
117
},
128
};
139

0 commit comments

Comments
 (0)