Nic*_*ner 5 javascript typescript visual-studio-code prettier-eslint
some.JS.Code;
//ignore this line from linting etc.
##Software will do some stuff here, but for JS it's an Error##
hereGoesJs();
Run Code Online (Sandbox Code Playgroud)
是否有可能从 Visual Studio Code 中的 linting 和格式化中排除一行?因为我需要该行,但还需要代码其他部分的 Linting 和格式化...
// I Tried
// eslint-disable-next-line no-use-before-define
// eslint-disable-line no-use-before-define
/*eslint-disable */
//suppress all warnings between comments
alert('foo');
/*eslint-enable */
// @ts-ignore
Run Code Online (Sandbox Code Playgroud)
JΛY*_*ÐΞV 10
/* eslint-disable no-var */
var x = 'apple sauce';
/* eslint-enable no-var */
Run Code Online (Sandbox Code Playgroud)
// Anything up here will still be affected by the linter.
/* eslint-disable */ // Disables everything from this point down
Run Code Online (Sandbox Code Playgroud)
// eslint-disable-next-line
var x = 'apple sauce';
// or you can do this:
var y = 'apple sauce'; // eslint-disable-line
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5301 次 |
| 最近记录: |