question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ESLint couldn't find the config "standard-with-typescript" to extend from.

See original GitHub issue

Tell us about your environment

  • ESLint Version: 7.14.0
  • Node Version: 14.13.1
  • npm Version: 6.14.9
  • yarn Version: 1.22.10

What parser (default, @babel/eslint-parser, @typescript-eslint/parser, etc.) are you using? default

Please show your full configuration:

.package.json
  "devDependencies": {
    "@types/faker": "5.1.4",
    "@typescript-eslint/eslint-plugin": "4.9.0",
    "eslint": "7.14.0",
    "eslint-config-standard-with-typescript": "19.0.1",
    "eslint-plugin-import": "2.22.1",
    "eslint-plugin-node": "11.1.0",
    "eslint-plugin-promise": "4.2.1",
    "eslint-plugin-react": "7.21.5",
    "eslint-plugin-standard": "5.0.0",
    "typescript": "4.1.2"
  }

.eslintrc.json
 {
  "root": true,
  "extends": [
    "standard-with-typescript",
    "plugin:react/recommended"
  ],
  "parserOptions": {
    "project": [
      "./tsconfig.json",
      "./devUtils/server/tsconfig.json"
    ],
    "ecmaFeatures": {
      "jsx": true
    }
  },
  "plugins": [
    "react-hooks"
  ],
  "settings": {
    "react": {
      "version": "detect"
    }
  },
  "rules": {
    "@typescript-eslint/strict-boolean-expressions": 0,
    "@typescript-eslint/explicit-function-return-type": 0,
    "@typescript-eslint/no-floating-promises": 0,
    "@typescript-eslint/consistent-type-definitions":0,
    "no-return-assign": 0,
    "operator-linebreak": 0,
    "react/jsx-tag-spacing": 2,
    "react/prop-types": 0,
    "react/display-name": 0,
    "@typescript-eslint/return-await": 0,
    "react-hooks/rules-of-hooks": 2,
    "react-hooks/exhaustive-deps": 2
  }
}


What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

run command

yarn eslint "src/**"

What did you expect to happen? ESLint find that config

What actually happened? Please include the actual, raw output from ESLint.

yarn run v1.22.10
$ /node_modules/.bin/eslint 'src/**'

Oops! Something went wrong! :(

ESLint: 7.14.0

ESLint couldn't find the config "standard-with-typescript" to extend from. Please check that the name of the config is correct.

The config "standard-with-typescript" was referenced from the config file in ".../.eslintrc.json".

If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.

error Command failed with exit code 2.

PS Main issue is when i try run these commands:

yarn install --production
yarn run build

I got error described above. I know about --production flag, but with previous version eslint 6.8.0 everything was alright.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Alexlikhcommented, Dec 3, 2020

@yeonjuan unfortunately, i can’t provide neither a reproducible way or github repo, but i can share previous configuration before migration.

"devDependencies": {
    "@typescript-eslint/eslint-plugin": "4.4.0",
    "eslint": "6.8.0",
    "eslint-config-standard-with-typescript": "19.0.1",
    "eslint-plugin-import": "2.22.1",
    "eslint-plugin-node": "11.1.0",
    "eslint-plugin-promise": "4.2.1",
    "eslint-plugin-react": "7.21.4",
    "eslint-plugin-standard": "4.0.1",
    "typescript": "4.0.5"
  }
{
  "extends": [
    "standard-with-typescript",
    "plugin:react/recommended"
  ],
  "parserOptions": {
    "project": [
      "./tsconfig.json",
      "./devUtils/server/tsconfig.json"
    ],
    "ecmaFeatures": {
      "jsx": true
    }
  },
  "settings": {
    "react": {
      "version": "detect"
    }
  },
  "rules": {
    "@typescript-eslint/strict-boolean-expressions": 0,
    "@typescript-eslint/explicit-function-return-type": 0,
    "@typescript-eslint/no-floating-promises": 0,
    "@typescript-eslint/consistent-type-definitions":0,
    "no-return-assign": 0,
    "operator-linebreak": 0,
    "react/jsx-tag-spacing": 2,
    "react/prop-types": 0,
    "react/display-name": 0,
    "@typescript-eslint/return-await": 0
  }
}
1reaction
Alexlikhcommented, Dec 3, 2020

Like i said, i know about --production flag. With previous version eslint 6.8.0 everything work as intended without errors. And yarn eslint "src/**" error occurs, what about that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint-config-standard-with-typescript - npm
An ESLint Shareable Config for JavaScript Standard Style with TypeScript support. Latest version: 24.0.0, last published: 14 days ago.
Read more >
eslint command fails on CI Server with error "ESLint couldn't ...
ESLint couldn't find the config "standard" to extend from. Please check that the name of the config is correct. The config "standard" was ......
Read more >
eslint-config-standard-with-typescript - npm package - Snyk
An ESLint Shareable Config for JavaScript Standard Style with TypeScript support For more information about how to use this package see README.
Read more >
eslint/eslint - Gitter
ESLint : 8.18.0 ESLint couldn't find the config "react-app" to extend from. Please check that the name of the config is correct.
Read more >
eslint couldn't find the config prettier to extend from - You.com
Different lint rules for JavaScript and TypeScript files. The problem happens for one of the reasons below: You're using a rule which require...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found