@j9t/imagemin-guard
Version:
Ensure losslessly compressed PNG, JPG, GIF, WebP, and AVIF images (suitable for manual and automatic compression)
26 lines • 554 B
JavaScript
export default [
{
ignores: [
'media/',
'node_modules/**'
]
},
{
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
console: 'readonly',
process: 'readonly',
setTimeout: 'readonly'
}
},
rules: {
'no-console': 'off', // CLI tool—allow console
'no-undef': 'error', // Catch undefined vars
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
eqeqeq: ['warn', 'smart'],
curly: ['warn', 'multi-line']
}
}
]