You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: js/red-javascript-style-guide/readme.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -666,20 +666,24 @@ Inside package.json
666
666
"ecmaFeatures": {}
667
667
},
668
668
"env": {
669
-
"es6": true,
669
+
"es2020": true,
670
670
"browser": true
671
671
},
672
672
"rules": {}
673
673
}
674
674
```
675
675
676
-
Inside package.json>scripts
676
+
If code is meant for other environments other than browser, [add them to "env"](https://eslint.org/docs/user-guide/configuring#specifying-environments)
0 commit comments