Skip to content

Commit 7731cd2

Browse files
authored
Configure ESLint using a JS file instead of JSON (#1868)
The file is meant to be written by humans.
1 parent 075d38b commit 7731cd2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.eslintrc.json renamed to .eslintrc.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
{
1+
module.exports = {
2+
root: true,
23
"env": {
34
"browser": true,
4-
"es6": true
5+
"es6": true,
6+
node: true,
57
},
68
"extends": "eslint:recommended",
79
"parserOptions": {
@@ -17,4 +19,4 @@
1719
"prefer-const": "error",
1820
"semi": "error"
1921
}
20-
}
22+
};

0 commit comments

Comments
 (0)