Fix eslint

This commit is contained in:
KMKoushik
2024-04-22 12:46:53 +10:00
parent ae249df47d
commit 493e9fb63a
40 changed files with 72 additions and 133 deletions

View File

@@ -8,12 +8,13 @@
"react-internal.js"
],
"devDependencies": {
"@vercel/style-guide": "^5.2.0",
"eslint-config-turbo": "^1.12.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-only-warn": "^1.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@next/eslint-plugin-next": "^14.2.2",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@vercel/style-guide": "^5.2.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-turbo": "^1.12.4",
"eslint-plugin-only-warn": "^1.1.0",
"typescript": "^5.3.3"
}
}

View File

@@ -40,4 +40,7 @@ module.exports = {
// Force ESLint to detect .tsx files
{ files: ["*.js?(x)", "*.ts?(x)"] },
],
rules: {
"no-redeclare": "off",
},
};

View File

@@ -8,7 +8,8 @@
"src"
],
"scripts": {
"lint": "eslint . --max-warnings 0"
"lint": "eslint . --max-warnings 0",
"lint:fix": "eslint . --fix"
},
"devDependencies": {
"@types/eslint": "^8.56.5",

View File

@@ -3,6 +3,6 @@
"compilerOptions": {
"outDir": "dist"
},
"include": ["src", "index.ts"],
"include": ["**/*.tsx", "**/*.ts"],
"exclude": ["node_modules", "dist"]
}

View File

@@ -3,6 +3,6 @@
"compilerOptions": {
"outDir": "dist"
},
"include": ["src", "turbo"],
"include": ["src", "turbo", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules", "dist"]
}