“Eslintignore” Kode Jawaban

Eslint abaikan

/* eslint-disable no-alert, no-console */

alert('foo');
console.log('bar');

/* eslint-enable no-alert, no-console */
baruchiro

Eslint abaikan

/* eslint-disable */

alert('foo');

/* eslint-enable */
Cloudy Copperhead

Eslintignore

# Same as gitignore
**/*.js
# or
{
    "ignorePatterns": ["**/vendor/*.js"],
}
T-DaMER

Eslint Ignorel Ine

// eslint-disable-next-line no-use-before-define
Zealous Zebra

Eslint mengabaikan

{
    "ignorePatterns": ["temp.js", "**/vendor/*.js"],
    "rules": {
        //...
    }
}
Roz

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya