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.

4.0.0: ESLint configuration is invalid: - Unexpected top-level property "ecmaFeatures"

See original GitHub issue

Tell us about your environment

  • ESLint Version: 4.0.0
  • Node Version: 6.11.0
  • npm Version: 5.0.3

What parser (default, Babel-ESLint, etc.) are you using? default

Please show your full configuration:

.eslintrc.json

{
    "extends": [
        "./eslintDefaults.json"
	]
}

eslintDefaults.json

{
    "parserOptions": {
        "ecmaVersion": 8
    },
	"env": {
        "es6": true
    },
    "extends": "eslint:recommended",
    "globals": {
    },
    "plugins": [
    ],
    "rules": {
    }
}

What did you do? Please include the actual source code causing the issue.

What did you expect to happen?

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

Error: D:\MyDev\ljs_app\trunk\periscope\build\test\selenium\public\.eslintrc:
        ESLint configuration is invalid:
        - Unexpected top-level property "ecmaFeatures".

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:35
  • Comments:27 (8 by maintainers)

github_iconTop GitHub Comments

45reactions
westy92commented, Jun 14, 2017

Looking here, they nested ecmaFeatures under parserOptions.

31reactions
metacortexcommented, Jun 14, 2017

eslint v4 is not yet supported in eslint-config-airbnb and eslint-config-airbnb-base. https://github.com/airbnb/javascript/issues/1447

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESLint configuration in .eslintrc.js is invalid: - Unexpected top ...
The top-level rules and config apply to all the matched files according to your command line options ( --ext etc.).
Read more >
eslint/eslint - Gitter
Error: [object Object ]: ESLint configuration is invalid: - Unexpected top-level property "ecmaFeatures". I ve searched on my project and i see that...
Read more >
ESLint - Unexpected top-level property "ecmaFeatures"
4.0.0 : ESLint configuration is invalid: - Unexpected top-level property "ecmaFeatures"
Read more >
eslint | Yarn - Package Manager
v8.30.0 - December 16, 2022. f2c4737 chore: upgrade @eslint/eslintrc@1.4.0 (#16675) (Milos Djermanovic); 1a327aa fix: Ensure flat config unignores work ...
Read more >
Point npm run testmc to use mach to avoid error with linting
Error: ESLint configuration in ../../../.eslintrc.js is invalid: - Unexpected top-level property "ignorePatterns". Maybe the more interesting question (but ...
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