EvgenyOrekhov / eslint-config-hardcore

The most strict (yet practical) ESLint config. 53 plugins. 1342 rules. React, Vue, Node, and pure JS/TS.

Home Page:https://www.npmjs.com/package/eslint-config-hardcore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Eslint warnings about configuration

The-Code-Monkey opened this issue · comments

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"

@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.