Skip to content

Commit

Permalink
Configure eslint pour utiliser babel et ES2020
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnix committed Feb 16, 2021
1 parent 1756134 commit 4f5569b
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"extends": "eslint:recommended",
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 8
"ecmaVersion": 11
},
"plugins": [
"@babel"
],
"env": {
"node": true,
"es6": true
Expand Down
50 changes: 50 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@babel/eslint-plugin": "^7.12.13",
"@babel/preset-env": "^7.12.16",
"@babel/register": "^7.12.13",
"@mermaid-js/mermaid-cli": "^8.9.0",
Expand Down

0 comments on commit 4f5569b

Please sign in to comment.