Skip to content

Commit de63afc

Browse files
bkendallhubgit
andauthored
add root: true to Functions' lint configuration (#3029)
* Add root: true to eslintrc Set `root: true` in the .eslintrc template, so that ESLint doesn't try to combine the configuration in the `functions` directory with the configuration in an `.eslintrc` file in the parent app directory. * add root: true Co-authored-by: Alf Eaton <[email protected]>
1 parent 0ee1329 commit de63afc

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
- Fixes issue where authorized domains were not being correctly updated when deploying to Hosting channels. (#3002)
77
- Fixes issue where the User-Agent was being overridden when proxying through the Hosting emulator. (#2970)
88
- Fixes issue where Firestore Emulator wrongly triggers events on deleting an nonexistent document (#3043).
9+
- Adds `root: true` to lint configurations for newly initialized functions directories to prevent it being combined with a higher level config. (#2925)

templates/init/functions/javascript/_eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
root: true,
23
env: {
34
es6: true,
45
node: true,

templates/init/functions/typescript/_eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
root: true,
23
env: {
34
es6: true,
45
node: true,

0 commit comments

Comments
 (0)