Review 12.4 Merged

80841[TASK] Allow eslint execution from root folder

Benjamin Franzke CR +2 V +2 Easy +5 −9 updated 09/05/23, 09:46

Commit message

With #101782 eslint project configuration was overwritten
to use a custom path.
eslint read the relative project configuration based
on the current execution folder instead of relative
to the eslintrc file.
This worked as long as eslint was executed from the
Build/ folder (execution folder == eslintrc folder).

As some tools execute eslint from the git root directory,
the configuration is now adapted to always resolve the
tsconfig file name as an absolute path based on the
configurations directory name.

Also overrideConfigFile is removed from Gruntfile.js
as .eslintrc.[json|js] is read by default and no
override is needed.

Review

  • Code review CR +2 Done
    • Benjamin Franzke +2
  • Verified V +2 Done
    • Benjamin Franzke +2
    • core-ci +1 CI

Issues 2

Files 3

Review log 34

  1. Benjamin Franzke commented on patch set 1 09/05/23, 09:38

    Cherry Picked from branch main.
  2. Benjamin Franzke voted on patch set 1 V +2 CR +2 09/05/23, 09:39

  3. core-ci voted on patch set 1 V +1 09/05/23, 09:44 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/46226

  4. Benjamin Franzke merged patch set 2 09/05/23, 09:46