Skip to content

Commit

Permalink
chore(eslint): adds 4 new rules to webdev projects/ of levels 1 and 2 (
Browse files Browse the repository at this point in the history
  • Loading branch information
mfdebian authored Oct 27, 2022
1 parent 8169c51 commit a311c51
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion projects/01-card-validation/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
},
"extends": "eslint:recommended",
"rules": {
"no-console": "warn"
"no-console": "warn",
"no-var": "error",
"prefer-const": "error",
"eqeqeq": "error",
"indent": ["error", 2]
}
}
6 changes: 5 additions & 1 deletion projects/01-cipher/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"extends": "eslint:recommended",
"rules": {
"no-console": "warn",
"import/extensions": 0
"import/extensions": 0,
"no-var": "error",
"prefer-const": "error",
"eqeqeq": "error",
"indent": ["error", 2]
}
}
6 changes: 5 additions & 1 deletion projects/02-data-lovers/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"extends": "eslint:recommended",
"rules": {
"no-console": "warn",
"import/extensions": 0
"import/extensions": 0,
"no-var": "error",
"prefer-const": "error",
"eqeqeq": "error",
"indent": ["error", 2]
}
}
6 changes: 5 additions & 1 deletion projects/02-emergency-room/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"extends": "eslint:recommended",
"rules": {
"no-console": "warn",
"import/extensions": 0
"import/extensions": 0,
"no-var": "error",
"prefer-const": "error",
"eqeqeq": "error",
"indent": ["error", 2]
}
}

0 comments on commit a311c51

Please sign in to comment.