Skip to content

Commit 14a994d

Browse files
committed
feat: Modernise and address npm vulnerabilities
1 parent 9120fd8 commit 14a994d

69 files changed

Lines changed: 14939 additions & 20593 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules
33

44
# caches
55
.eslintcache
6+
.wireit
67

78
# misc
89
.DS_Store

.prettierignore

Lines changed: 0 additions & 5 deletions
This file was deleted.
File renamed without changes.

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"apidevtools",
2424
"openapi",
2525
"rivr",
26-
"ttsc"
26+
"tseslint",
27+
"ttsc",
28+
"wireit"
2729
]
2830
}

.vscode/tasks.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,8 @@
44
{
55
"label": "Lint",
66
"type": "shell",
7-
"command": "npm run lint:watch",
7+
"command": "npm run lint",
88
"problemMatcher": ["$eslint-stylish"],
9-
"isBackground": true
109
},
11-
{
12-
"label": "TSC",
13-
"type": "shell",
14-
"command": "npm run build:watch",
15-
"problemMatcher": ["$tsc-watch"],
16-
"isBackground": true
17-
}
1810
]
1911
}

eslint.config.mjs

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// @ts-check
2+
3+
import eslint from '@eslint/js';
4+
import tseslint from 'typescript-eslint';
5+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
6+
import globals from 'globals';
7+
8+
export default tseslint.config(
9+
{
10+
ignores: ['**/generated/**/*.*', '**/*.generated.*', '**/dist/**/*.*']
11+
},
12+
13+
eslint.configs.recommended,
14+
15+
...tseslint.configs.strictTypeChecked,
16+
...tseslint.configs.stylisticTypeChecked,
17+
18+
{
19+
languageOptions: {
20+
globals: globals.node,
21+
parserOptions: {
22+
projectService: {
23+
allowDefaultProject: ['*.{js,mjs,cjs}'],
24+
defaultProject: 'tsconfig.json'
25+
},
26+
tsconfigRootDir: import.meta.dirname
27+
}
28+
}
29+
},
30+
31+
{
32+
rules: {
33+
'@typescript-eslint/no-extraneous-class': 'off',
34+
'@typescript-eslint/no-misused-promises': 'off',
35+
36+
'@typescript-eslint/no-unused-vars': [
37+
'warn',
38+
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' }
39+
]
40+
}
41+
},
42+
43+
eslintPluginPrettierRecommended,
44+
45+
{
46+
files: ['**/*.js'],
47+
rules: {
48+
'@typescript-eslint/no-require-imports': 'off'
49+
}
50+
}
51+
);

0 commit comments

Comments
 (0)