Closed (works as designed)
Project:
Drupal core
Version:
8.9.x-dev
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
26 Sep 2015 at 15:46 UTC
Updated:
23 Feb 2021 at 11:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
attiks commentedMoved both files and updated the .eslintignore file.
Comment #3
nod_I want module to be checked to being in root means contrib desn't have to duplicate the config all the time.
Comment #4
attiks commentedWe need to find a way to run this on the core directory, excluding all contrib, so testbot can add it. Eventually testbot will start running for contrib as well, but they need to be able to alter the excluded dirs i think.
For the moment the .eslintignore contains very specific core directories, so it does not make sense to put it in the core directory.
Comment #5
nod_oh for the testbot that's an easy fix
eslint core/the ignore file don't cascade like the config files so it's a bit tricky.
Comment #6
attiks commentedor we move the .eslintignore to the core folder and run eslint in that folder?
Comment #7
nod_that works
Comment #9
anoopjohn commentedWhat was finally decided on this?
Comment #13
kwoxer commentedNeeds re-roll. Patch fails at Drupal 8.4.
Comment #14
hass commentedDoes this really make sense? Currently this config is inherited to contrib modules. I only extended the part needed for my module. With this change the rules no longer exists for contrib and are not applied there. I think this is not good for quality of modules running QA tests on d.o.
Comment #16
pinoniq commentedHey, just leaving this comment here: https://www.drupal.org/project/drupal/issues/2815077 this moved to the airbnb-config breaking all our eslint builds in custom themes.
This because the root eslintrc.json file was automatically being included. I personally don't get why this got committed with no bc.
As long as there is no package.json in the root, you can not simply add .eslint configurations that require certain dependencies.
For instance, the
eslint-plugin-reactmodule is required, which seems weird if you don't use react.For me there are two solutions:
* include a package.json in the root so people know what packages to install
* don't include the .eslintrc.json file in the root
Comment #20
nod_main issue has been solved at some point in the past