Skip to content

Commit 04afa6e

Browse files
committed
eslint to work with fields in classes
1 parent aea870e commit 04afa6e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ module.exports = {
77
},
88

99
parserOptions: {
10-
ecmaVersion: 8,
10+
ecmaVersion: 11,
11+
"requireConfigFile": false
1112
},
13+
parser: "@babel/eslint-parser", // needed for fields in classes
1214

1315
globals: {
1416
chrome: "readonly", // Chromium specific browser global

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
},
5353
"homepage": "https://github.com/espruino/EspruinoTools#readme",
5454
"devDependencies": {
55+
"@babel/eslint-parser": "^7.27.1",
5556
"@types/node": "^22.14.1",
5657
"eslint": "^8.57.1",
5758
"typescript": "^5.8.3"

0 commit comments

Comments
 (0)