Skip to content

Commit

Permalink
lint: Modify ESLint configuration.
Browse files Browse the repository at this point in the history
This commit also includes the changes that were suggested by ESLint.
  • Loading branch information
sbansal1999 committed Apr 26, 2024
1 parent eaa6eff commit a32fcad
Show file tree
Hide file tree
Showing 5 changed files with 237 additions and 9 deletions.
11 changes: 10 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"extends": "next/core-web-vitals"
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/stylistic"
],
"rules": {
"@typescript-eslint/consistent-type-definitions": ["error", "type"]
},
"ignorePatterns": ["src/components/ui/*", "env.d.ts"]
}
3 changes: 2 additions & 1 deletion env-util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import fs from "fs";

function populateENV() {
const fs = require("fs");
let secrets;

try {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@eslint/js": "^9.1.1",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand All @@ -47,6 +48,7 @@
"husky": "^9.0.11",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"typescript": "^5"
"typescript": "^5",
"typescript-eslint": "^7.7.1"
}
}
225 changes: 220 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a32fcad

Please sign in to comment.