Skip to content

Commit

Permalink
Merge pull request #1 from jharlow/feat-eslint
Browse files Browse the repository at this point in the history
feat: eslint
  • Loading branch information
jharlow authored Oct 10, 2024
2 parents ff8d01c + 7e5e8dc commit e7fb671
Show file tree
Hide file tree
Showing 9 changed files with 857 additions and 33 deletions.
16 changes: 16 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";

export default [
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
},
},
];
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,23 @@
"description": "Build your `dynamodb-onetable` schema using your existing `zod` schemas",
"main": "index.ts",
"scripts": {
"lint": "eslint src",
"lint-fix": "eslint src --fix",
"test": "vitest"
},
"author": "John Harlow",
"license": "MIT",
"devDependencies": {
"@aws-sdk/client-dynamodb": "^3.666.0",
"@eslint/js": "^9.12.0",
"@types/eslint__js": "^8.42.3",
"@types/node": "^22.7.5",
"dynamo-db-local": "^9.2.1",
"dynamodb-onetable": "^2.7.5",
"eslint": "^9.12.0",
"globals": "^15.11.0",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.1",
"vitest": "^2.1.2",
"vitest-mock-extended": "^2.0.2",
"wait-port": "^1.1.0",
Expand Down
Loading

0 comments on commit e7fb671

Please sign in to comment.