Skip to content

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kharann committed Sep 23, 2023
1 parent 10c12ed commit bd11fb4
Show file tree
Hide file tree
Showing 15 changed files with 496 additions and 56 deletions.
46 changes: 46 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/** @type {import("eslint").Linter.Config} */
const config = {
extends: [
"turbo",
"eslint:recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"prettier",
],
env: {
es2022: true,
node: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
},
plugins: ["@typescript-eslint", "import"],
rules: {
"turbo/no-undeclared-env-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
"@typescript-eslint/consistent-type-imports": [
"warn",
{ prefer: "type-imports", fixStyle: "separate-type-imports" },
],
"@typescript-eslint/no-misused-promises": [
2,
{ checksVoidReturn: { attributes: false } },
],
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
},
ignorePatterns: [
"**/.eslintrc.cjs",
"**/*.config.js",
"**/*.config.cjs",
".next",
"dist",
"pnpm-lock.yaml",
],
reportUnusedDisableDirectives: true,
};

module.exports = config;
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"devDependencies": {
"@sanity/cli": "^3.16.7",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-turbo": "^1.10.14",
"eslint-plugin-import": "^2.28.1",
"prettier": "^3.0.3",
"tsconfig-paths": "^4.2.0",
"turbo": "^1.10.14",
Expand Down
Loading

1 comment on commit bd11fb4

@vercel
Copy link

@vercel vercel bot commented on bd11fb4 Sep 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

homepage-web – ./

homepage-web-git-master-kharann.vercel.app
homepage-web-kharann.vercel.app
homepage-web-roan.vercel.app

Please sign in to comment.