Eslint: add support for class properties (#21678)
Showing
此差异已折叠。
... | @@ -29,6 +29,12 @@ | ... | @@ -29,6 +29,12 @@ |
"eslintConfig": { | "eslintConfig": { | ||
"root": true, | "root": true, | ||
"extends": "mdcs", | "extends": "mdcs", | ||
"parser": "@babel/eslint-parser", | |||
"parserOptions": { | |||
"babelOptions": { | |||
"configFile": "./utils/build/.babelrc.json" | |||
} | |||
}, | |||
"plugins": [ | "plugins": [ | ||
"html" | "html" | ||
], | ], | ||
... | @@ -92,6 +98,7 @@ | ... | @@ -92,6 +98,7 @@ |
"homepage": "https://threejs.org/", | "homepage": "https://threejs.org/", | ||
"devDependencies": { | "devDependencies": { | ||
"@babel/core": "^7.13.15", | "@babel/core": "^7.13.15", | ||
"@babel/eslint-parser": "^7.13.14", | |||
"@babel/plugin-proposal-class-properties": "^7.13.0", | "@babel/plugin-proposal-class-properties": "^7.13.0", | ||
"@babel/preset-env": "^7.13.15", | "@babel/preset-env": "^7.13.15", | ||
"@rollup/plugin-babel": "^5.3.0", | "@rollup/plugin-babel": "^5.3.0", | ||
... | ... |
想要评论请 注册 或 登录