Skip to content
Snippets Groups Projects
Commit 66b45be3 authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[TASK] Allow eslint execution from root folder

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.

Resolves: #101846
Related: #101782
Releases: main, 12.4
Change-Id: I58a6322a74d388efb0da28d1d8e7375f491c7aea
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80841


Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent cc8c1e45
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment