Skip to content

Commit

Permalink
chore: update to eslint v9 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
mazyu36 authored Feb 10, 2025
1 parent fa9cd1d commit 5f16a5a
Show file tree
Hide file tree
Showing 5 changed files with 491 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
24 changes: 24 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const pluginJs = require("@eslint/js");
const tseslint = require("typescript-eslint");
const prettier = require("eslint-config-prettier");

module.exports = [
{ files: ["**/*.ts"] },
{
languageOptions: {
parserOptions: {
project: "./tsconfig.json",
},
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
...prettier.rules,
},
},
{
ignores: ["**/*.d.ts"],
},
];
Loading

0 comments on commit 5f16a5a

Please sign in to comment.