mirror of
https://github.com/svg/svgo.git
synced 2025-04-19 10:22:15 +03:00
49 lines
831 B
JavaScript
49 lines
831 B
JavaScript
import js from '@eslint/js';
|
|
import globals from 'globals';
|
|
|
|
/**
|
|
* @typedef {import('eslint').Linter.Config} Config
|
|
*/
|
|
|
|
/** @type {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: {
|
|
strict: 'error',
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.test.js'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.jest,
|
|
},
|
|
},
|
|
},
|
|
];
|