Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: avoid skipping test for env overrides (refs eslint#8291) (esli…
…nt#8556) When working on 734846b, it was discovered that the regression test for eslint#3735 was broken and always passing. The test was broken by 1e60065 over a year ago, and a regression occurred later on (possibly in 8410869), which no one noticed because the regression test was broken. The test was supposed to assert that an environment setting in a child config will override the corresponding setting in a parent config. Unfortunately, in the time since the regression occurred, people have started using things like `parserOptions: { ecmaVersion: 7 }` along with `env: { es6: true }`, Many projects rely on the fact that when these two options are combined, `ecmaVersion: 7` will be passed to the parser even though the `env` specifies `ecmaVersion: 6`. As a result, re-fixing the original bug would cause significant ecosystem breakage. The solution in 734846b was to skip the test and deal with the problem later. This commit modifies the test to assert the current behavior, which is the opposite of what the test was originally supposed to assert. If we decide to change the current behavior, we can always modify the test again, but I think it's important to verify that the current behavior doesn't change by mistake, because a lot of projects are relying on it. Refs: eslint#3735, eslint#8291, eslint#8295 (comment)
- Loading branch information