DEV Community

Discussion on: Linting Your React+Typescript Project with ESLint and Prettier!

Collapse
 
michalpuskel profile image
Michal Puškel

SOLVED:
youtube.com/watch?v=mg_pDqszL3g

add rule "@typescript-eslint/indent": "off" to .eslintrc

{
  "parser": "@typescript-eslint/parser",
  "extends": [
    "plugin:@typescript-eslint/recommended",
    "react-app",
    "plugin:prettier/recommended"
  ],
  "plugins": ["@typescript-eslint", "react"],
  "rules": {
    "no-console": "warn",
    "no-debugger": "warn",
    "@typescript-eslint/indent": "off"
  }
}

Collapse
 
dorshinar profile image
Dor Shinar

I'm sorry I didn't get a chance to look into your problem, but I'm glad you figured it out. I've faced the same issue and solved it this way too.

Thread Thread
 
michalpuskel profile image
Michal Puškel

No problem, I'm glad it works! Thanks!