未验证 提交 916ed1e8 编写于 作者: M Marco Fugaro 提交者: GitHub

Eslint: add support for class properties (#21678)

上级 a1233689
此差异已折叠。
......@@ -29,6 +29,12 @@
"eslintConfig": {
"root": true,
"extends": "mdcs",
"parser": "@babel/eslint-parser",
"parserOptions": {
"babelOptions": {
"configFile": "./utils/build/.babelrc.json"
}
},
"plugins": [
"html"
],
......@@ -92,6 +98,7 @@
"homepage": "https://threejs.org/",
"devDependencies": {
"@babel/core": "^7.13.15",
"@babel/eslint-parser": "^7.13.14",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/preset-env": "^7.13.15",
"@rollup/plugin-babel": "^5.3.0",
......
......@@ -9,5 +9,13 @@
"bugfixes": true
}
]
],
"plugins": [
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
]
]
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册