Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
Problem/Motivation
If a user makes any modifications to ./.eslintrc
it can be difficult and time consuming to merge the changes from core into your custom file.
Proposed resolution
- Move
./.eslintrc
into./core/.eslintrc
- Create a new
./.eslintrc
that simply extends the./core/.eslintrc
file.
This allows the user to always have a clean config file. It allows core to make all the changes they'd like without the user having to merge those changes.
The new ./.eslintrc
would look something like this:
{
"extends": "./core/.eslintrc"
}
A user can add override any rules they'd like by adding them to this file.
Remaining tasks
- Write Patch
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2660034-3.patch | 3.03 KB | naveenvalecha |
#4 | 2660034-3.patch | 3.03 KB | naveenvalecha |
Comments
Comment #2
nod_wanted to do that for a while. +1
Comment #3
Wim LeersSounds great!
Comment #4
naveenvalechaInitial patch
Comment #5
naveenvalechaComment #6
nod_Eslint still working as before. Thanks.
Comment #9
alexpottCommitted addd898 and pushed to 8.0.x and 8.1.x. Thanks!
Whilst this is not a bug it is a test infrastructure only based change therefore permitted to 8.0.x and no rules have changed either.