Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eslint warnings about configuration #893

Open
The-Code-Monkey opened this issue Mar 1, 2024 · 1 comment
Open

Eslint warnings about configuration #893

The-Code-Monkey opened this issue Mar 1, 2024 · 1 comment

Comments

@The-Code-Monkey
Copy link

So I currently have a typescript, nextjs and tailwind app. when i run lint with this config i get some issues.

{
  "$schema": "https://json.schemastore.org/eslintrc",
  "root": true,
  "extends": [
    "hardcore",
    "hardcore/react",
    "hardcore/ts",
    "hardcore/prettier"
  ],
  "plugins": [
    "@typescript-eslint",
    "prettier"
  ],
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "project": "./tsconfig.json",
    "sourceType": "module",
    "ecmaVersion": "latest",
    "ecmaFeatures": {
      "jsx": true,
      "modules": true
    }
  },
  "rules": {
  },
  "settings": {
    "next": {
      "rootDir": true
    }
  }
}

I am getting these errors.

Line 158, column 10: Expected corresponding JSX closing tag for 'Search'.
parseForESLint from parser @typescript-eslint/parser is invalid and will just be ignored
Cannot read properties of undefined (reading 'typeAnnotation')
Occurred while linting /search/page.tsx:16
Rule: "etc/no-implicit-any-catch"

@The-Code-Monkey
Copy link
Author

@EvgenyOrekhov As a side note it might be good either to link to some working repos that use eslint-config-hardcore or make some base template apps for people to build from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant