Vue.js/ESLint: Difference between revisions
< Vue.js
Jump to navigation
Jump to search
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
= ignore linting = | = ignore linting = | ||
<source lang=" | <source lang="js"> | ||
// eslint | /* eslint-disable */ | ||
alert('foo'); | |||
/* eslint-enable */ | |||
</source> | </source> | ||
= ignore linting = | |||
<source lang="js"> | |||
/* eslint-disable no-alert, no-console */ | |||
alert('foo'); | |||
console.log('bar'); | |||
/* eslint-enable no-alert, no-console */ | |||
</source> | |||
https://cn.eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments | |||
Latest revision as of 11:15, 23 June 2020
ignore linting
/* eslint-disable */
alert('foo');
/* eslint-enable */
ignore linting
/* eslint-disable no-alert, no-console */
alert('foo');
console.log('bar');
/* eslint-enable no-alert, no-console */
https://cn.eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments