Skip to content

Commit 5cacc4f

Browse files
committed
Upgrade many dependencies with cleanup
Summary: Test Plan:
1 parent 533f465 commit 5cacc4f

File tree

8 files changed

+7158
-6230
lines changed

8 files changed

+7158
-6230
lines changed

.eslintrc.json

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

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ To validate locally before pushing, run `AWS_REGION=us-east-1 npm run build-and-
156156

157157
Other targets of interest
158158

159-
- `build` - Runs the build and generates the lambda layer contents
160-
- `unit-test` - Runs the unit test suite
161-
- `integration-test` - Runs the integration test suite (requires AWS credentials)
162-
- `test` - Runs all tests
163-
- `release` - This deploys to the production stack. **Do not run manually.**
164-
- `check` - Runs static analysis and tests
165-
- `prettier-fix` - Automatically fixes Prettier issues
166-
- `lint-fix` - Automatically fixes ESLint issues
159+
- `build` - Runs the build and generates the lambda layer contents
160+
- `unit-test` - Runs the unit test suite
161+
- `integration-test` - Runs the integration test suite (requires AWS credentials)
162+
- `test` - Runs all tests
163+
- `release` - This deploys to the production stack. **Do not run manually.**
164+
- `check` - Runs static analysis and tests
165+
- `prettier-fix` - Automatically fixes Prettier issues
166+
- `lint-fix` - Automatically fixes ESLint issues
167167

168168
## Releases
169169

eslint.config.mts

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import { defineConfig, globalIgnores } from "eslint/config";
2+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
3+
import tsParser from "@typescript-eslint/parser";
4+
import path from "node:path";
5+
import { fileURLToPath } from "node:url";
6+
import js from "@eslint/js";
7+
import { FlatCompat } from "@eslint/eslintrc";
8+
9+
const __filename = fileURLToPath(import.meta.url);
10+
const __dirname = path.dirname(__filename);
11+
const compat = new FlatCompat({
12+
baseDirectory: __dirname,
13+
recommendedConfig: js.configs.recommended,
14+
allConfig: js.configs.all,
15+
});
16+
17+
export default defineConfig([
18+
globalIgnores(["**/node_modules/", "**/dist/", "**/webpack.config.js", "**/jest.config.js"]),
19+
{
20+
extends: compat.extends(
21+
"eslint:recommended",
22+
"plugin:@typescript-eslint/eslint-recommended",
23+
"plugin:@typescript-eslint/recommended",
24+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
25+
),
26+
27+
plugins: {
28+
"@typescript-eslint": typescriptEslint,
29+
},
30+
31+
linterOptions: {
32+
reportUnusedDisableDirectives: true,
33+
},
34+
35+
languageOptions: {
36+
parser: tsParser,
37+
ecmaVersion: 5,
38+
sourceType: "script",
39+
40+
parserOptions: {
41+
// project: path.join(__dirname, "tsconfig.json"),
42+
projectService: true,
43+
},
44+
},
45+
46+
rules: {
47+
"@typescript-eslint/no-unused-vars": [
48+
"error",
49+
{
50+
argsIgnorePattern: "^_",
51+
},
52+
],
53+
54+
"@typescript-eslint/restrict-template-expressions": [
55+
"error",
56+
{
57+
allowNullish: true,
58+
},
59+
],
60+
},
61+
},
62+
]);

0 commit comments

Comments
 (0)