Skip to content

Commit 21e3859

Browse files
authored
update env
1 parent a60a366 commit 21e3859

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

js/red-javascript-style-guide/readme.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,20 +666,24 @@ Inside package.json
666666
"ecmaFeatures": {}
667667
},
668668
"env": {
669-
"es6": true,
669+
"es2020": true,
670670
"browser": true
671671
},
672672
"rules": {}
673673
}
674674
```
675675

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)
677+
678+
Inside package.json > scripts
677679

678680
```
679681
"lint-fix": "eslint --ignore-path .gitignore --fix source",
680682
"lint": "eslint --ignore-path .gitignore source",
681683
```
682684

685+
where source is the folder containing all the files to lint.
686+
683687
### Inspiration
684688

685689
- [APIs (video)](https://www.youtube.com/watch?v=gweY3L0YA1Y)

0 commit comments

Comments
 (0)