1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00
Files
svgo/eslint.config.mjs
2025-05-04 17:39:44 +01:00

47 lines
853 B
JavaScript

import js from '@eslint/js';
import globals from 'globals';
/** @type {import('eslint').Linter.Config[]} */
export default [
{
ignores: [
'.yarn/**',
'.yarnrc.yml',
'node_modules/**',
'dist/**',
'test/regression-fixtures/**',
'test/regression-diffs/**',
'test/cli/output/**',
'coverage/**',
],
},
{
languageOptions: {
ecmaVersion: 'latest',
globals: {
...globals.nodeBuiltin,
},
},
linterOptions: {
reportUnusedDisableDirectives: 'error',
},
},
js.configs.recommended,
{
files: ['**/*.js', '**/*.mjs'],
rules: {
'one-var': ['error', 'never'],
curly: 'error',
strict: 'error',
},
},
{
files: ['**/*.test.js'],
languageOptions: {
globals: {
...globals.jest,
},
},
},
];