我是<video id="wheelspin" width="320" height="176">
<source src="https://www.w3schools.com/tags/mov_bbb.mp4" type="video/mp4">
</video>
<button onClick="playVideo()">Play</button>
<script>
var vid = document.getElementById("wheelspin");
function playVideo() {
vid.play();
}
</script>
的新手,我想知道如何禁用订购导入:((
我一直试图在create react app typescript version
和tsconfig.json
中设置错误的不同属性
感谢您的帮助。
答案 0 :(得分:3)
您必须按照以下步骤编辑tslint.json
并禁用ordered-imports
规则:
{
"extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"],
"rules": {
"ordered-imports": false
},
"linterOptions": {
"exclude": [
"config/**/*.js",
"node_modules/**/*.ts"
]
}
}