Skip to content

Commit ba64cf5

Browse files
committed
Update eslint config
1 parent 51f5114 commit ba64cf5

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules/
2+
Exercises/

.eslintrc.json

+6-11
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@
113113
"new-parens": [
114114
"error"
115115
],
116+
"no-lonely-if": [
117+
"error"
118+
],
116119
"no-trailing-spaces": [
117120
"error"
118121
],
@@ -148,7 +151,7 @@
148151
"space-before-function-paren": [
149152
"error",
150153
{
151-
"anonymous": "always",
154+
"anonymous": "never",
152155
"named": "never",
153156
"asyncArrow": "always"
154157
}
@@ -259,13 +262,5 @@
259262
"error",
260263
"never"
261264
]
262-
},
263-
"overrides": [
264-
{
265-
"files": ["1-let.js"],
266-
"rules": {
267-
"prefer-const": "off"
268-
}
269-
}
270-
]
271-
}
265+
}
266+
}

0 commit comments

Comments
 (0)