Skip to content

Commit

Permalink
chore: update to eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
mazyu36 committed Feb 10, 2025
1 parent 6a8271b commit 0831704
Show file tree
Hide file tree
Showing 5 changed files with 493 additions and 896 deletions.
15 changes: 0 additions & 15 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
!jest.config.js
*.d.ts
node_modules
!eslint.config.js

# CDK asset staging directory
.cdk.staging
Expand Down
25 changes: 25 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import prettier from "eslint-config-prettier";

/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ["**/*.ts"] },
{
languageOptions: {
parserOptions: {
project: "./tsconfig.json",
},
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
...prettier.rules,
},
},
{
ignores: ["*.d.ts"],
},
];
Loading

0 comments on commit 0831704

Please sign in to comment.