Skip to content

Commit 7ddda6f

Browse files
chore(deps): update dependency eslint to v9 (#124)
* chore(deps): update dependency eslint to v9 * chore: upgrade eslint and aws-cdk --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: evan-boone <[email protected]>
1 parent b9906ab commit 7ddda6f

File tree

6 files changed

+305
-428
lines changed

6 files changed

+305
-428
lines changed

.eslintignore

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

.eslintrc

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

eslint.config.mjs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import path from "node:path";
2+
import { fileURLToPath } from "node:url";
3+
import js from "@eslint/js";
4+
import { FlatCompat } from "@eslint/eslintrc";
5+
6+
const __filename = fileURLToPath(import.meta.url);
7+
const __dirname = path.dirname(__filename);
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
recommendedConfig: js.configs.recommended,
11+
allConfig: js.configs.all
12+
});
13+
14+
export default [{
15+
ignores: [
16+
"**/*.d.ts",
17+
"**/*.js",
18+
"**/*.mjs",
19+
"lib/",
20+
"cdk.out/",
21+
"**/commitlint.config.js",
22+
"example-assets/source/index.js",
23+
"**/jest.config.js",
24+
],
25+
}, ...compat.extends(
26+
"plugin:@typescript-eslint/recommended",
27+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
28+
"prettier",
29+
"plugin:prettier/recommended",
30+
), {
31+
languageOptions: {
32+
ecmaVersion: 5,
33+
sourceType: "module",
34+
35+
parserOptions: {
36+
project: "./tsconfig.eslint.json",
37+
},
38+
},
39+
40+
rules: {
41+
"@typescript-eslint/no-non-null-assertion": "off",
42+
"@typescript-eslint/no-unused-vars": "error",
43+
},
44+
}, {
45+
files: ["**/*.ts"],
46+
}];

0 commit comments

Comments
 (0)