EvgenyOrekhov / eslint-config-hardcore

The most strict (yet practical) ESLint config. 53 plugins. 1342 rules. React, Vue, Node, and pure JS/TS.
https://www.npmjs.com/package/eslint-config-hardcore
MIT License
402 stars 13 forks source link

Eslint warnings about configuration #893

Open The-Code-Monkey opened 4 months ago

The-Code-Monkey commented 4 months ago

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 commented 4 months ago

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